Quantcast
Channel: How do I check out a remote Git branch? - Stack Overflow
Viewing all articles
Browse latest Browse all 49

Answer by webdevguy for How do I check out a remote Git branch?

$
0
0

git branch -r says the object name is invalid, because that branch name isn't in Git's local branch list. Update your local branch list from origin with:

git remote update

And then try checking out your remote branch again.

This worked for me.

I believe git fetch pulls in all remote branches, which is not what the original poster wanted.


Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>