Git: Creating a Remote Branch (and track it locally)

Ivan Torres (mexpolk)

Required steps to create and track locally a remote branch with git:

# Create new remote branch
git push origin origin:refs/heads/new_branch_name
 
# Make sure everything is updated
git fetch origin
 
# Check your branch has been created
git branch -r
 
# Track a remote branch
git branch --track new_branch_name origin/new_branch_name
 
# Checkout remote branch
git checkout new_branch_name

View original post

Advertisements

About ege's press.

Few things. I'm lizard king i can do anything. Let's start this shit. mpla mpla mpla de mas pernei gia polla. (greeklish) System learn greeklish. Learn to use your Keyboard shortcuts makes your life easier.Inside time άλλωστε... εμείς είμαστε ...
This entry was posted in Koulouvachata. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s