Return to Snippet

Revision: 15675
at July 13, 2009 12:24 by jturmel

Initial Code
# Create the remote branch

git push origin origin:refs/heads/some_branch

# Make sure everything is up-to-date

git fetch origin

# Then you can see that the branch is created.

git branch -r

# This should show ‘origin/new_feature_name’
# Start tracking the new branch

git checkout --track -b new_feature_name origin/some_branch

# This means that when you do pulls that it will get the latest from that branch as well.
# Make sure everything is up-to-date

git pull

Initial URL

Initial Description

Initial Title
Create and track a remote branch in Git

Initial Tags

Initial Language