Skip to content

Unable to clone repository due to user error code: 128 after a force push to a previous commit (rollback): #4061

Description

@dickreuter

Environment information

react JS with vite

Describe the bug

2025-06-09T22:11:47.631Z [INFO]: # Switching to commit: 594ee38d67aa373560e38e1ea5aafbf0213f76ca

2025-06-09T22:11:47.642Z [INFO]: fatal: unable to read tree (594ee38d67aa373560e38e1ea5aafbf0213f76ca)

2025-06-09T22:11:47.695Z [INFO]: Successfully cleaned up Git credentials

2025-06-09T22:11:47.696Z [ERROR]: !!! CustomerError: Unable to clone repository due to user error code: 128

2025-06-09T22:11:47.696Z [INFO]: # Starting environment caching...

2025-06-09T22:11:47.696Z [INFO]: # Environment caching completed

Reproduction steps

Push a repo to amplify. The website is deployed. Do a hard reset to a previous commit and do a force push.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconsoleThe issue is related to performing an action in the Amplify console

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions