Jovan
Jovan

Reputation: 306

Couldn't checkout branch. Revision not found

I have an android app that I'm working on, the app has three branches master, design and functionality. When I yesterday stopped working everything was fine. Now when I started again it gave me to add all the files from the Design branch which are already there on a private repository on GitLab. So because of that I checked on the Functionality branch. Now when I want to checkout back to the Design branch it says

Couldn't checkout Design: Revision not found in "ProjectName"

Basically I can not work with the Design branch.

Did someone knows how can I fix this.

What I tried to do is to create a new local branch from the remote origin/Design but that didn't work as well.

Upvotes: 3

Views: 9760

Answers (1)

Abhishek Agarwal
Abhishek Agarwal

Reputation: 21

git fetch -a 

and then

git checkout <branch name>

worked in my scenario

I think this should work

Upvotes: 2

Related Questions