Skip to content

Git. Pushing your local branch to remote branch repo

July 1, 2008

Assume you have a git branch named experimental and you would like to push it to your remote repository.

Then just do

git push origin experimental

Now other people can see the remote branch if they do git branch -r.

Perhaps they should do a git pull first before the git branch -r.

This should come out:

origin/experimental

If they would like to work on that branch then simply

git branch <your_branch_name> origin/experimental

Don’t forget to git checkout <your_branch_name> first.

Advertisements
No comments yet

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

%d bloggers like this: