Unexpected Error while taking a Snapshot. Id: xxxxxxxxxxxxxxxxxx.. Message: Error received fetching branch '[branch name]'

When trying to perform actions such as commits, you may receive the following error message:

Unexpected Error while taking a Snapshot. Id: xxxxxxxxxxxxxxxxxx.. Message: Error received fetching branch '[branch name]': Git exit code: 128 with error message: with output: fatal: Couldn't find remote ref [branch name]. du: cannot access '*': No such file or directory 

This error occurs when Git is unable to locate a branch. It is often due to the mismatching of the branch name in Copado. Note that branch names are case sensitive (For example, "uat" is not the same as "Uat", or "UAT")

To resolve this error, you will need to check and confirm that your branch names in Copado and your git repository match. 


How did we do?