Working with Branches in Git

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

git pull origin my_experimental_feature

Related posts:

  1. Very Basic Git Workflow
  2. git checkout — file-in-question.oh-my
  3. Non Standard Port Number with SSH and Git
  4. How To Flush Your Permalink Structure in Wordpress When Using Taxonomies …or Wordpress Taxonomies Not Working Instead I See A 404 Page
This entry was posted in Git and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

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>