Show all the branches
git branch
Create a new branch
git branch my_experimental_feature
Use that branch
git checkout my_experimental_feature
Pushing the new branch to a remote server
git push origin my_experimental_feature
Pulling that branch down on another machine
git pull origin my_experimental_feature
Listing all branches on other machine
git branch -a
Updating other machine
Related posts:
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Working with Branches in Git
Show all the branches
Create a new branch
Use that branch
Pushing the new branch to a remote server
Pulling that branch down on another machine
Listing all branches on other machine
Updating other machine
Related posts: