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

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

$
0
0

OK, the answer is easy... You basically see the branch, but you don't have a local copy yet!...

You need to fetch the branch...

You can simply fetch and then checkout to the branch, use the one line command below to do that:

git fetch && git checkout test

I also created the image below for you to share the differences, look at how fetch works and also how it's different to pull:

git fetch


Viewing all articles
Browse latest Browse all 49

Trending Articles



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