Quantcast
Channel: How to check out a remote Git branch? - Stack Overflow
Viewing all articles
Browse latest Browse all 97

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

$
0
0

What I usually do in this case is:

Starting by a clean branch

  • create and switch to a new branch in local

    git checkout -b test

  • set the new branch to track the remote desired one

    git branch --set-upstream-to=origin/test test

  • pull the remote one

    git pull


Viewing all articles
Browse latest Browse all 97

Trending Articles



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