jcadima
5/22/2017 - 1:12 PM

Git , get a remote git branch

Git , get a remote git branch

https://carl-topham.com/theblog/post/what-git-branching-and-how-do-i-do-branch/


- Once a branch has been pushed to origin it’s available for other developers to pull to their machines
list of all remote branches that are available:
$ git branch -a

We can see a list of any remote branches available so we know what we can checkout. Then it’s simply a matter of checking it out:

$ git fetch
$ git checkout feature/coolwidget

And there you have it. You should now be able to create a repo and commit files and changes as well as creating branches and pushing it all to the origin so other developers can work on your projects with you.