Skip to content

Git. Make sure branch is updated

July 2, 2008

I had to make sure my git branch is updated with my master.

So at my master branch

git pull master

Next, I switched to my branch named ‘feature_super_tag’.

git checkout feature_super_tag

and then

git rebase master

A good explanation of what a rebase does is from these two blogs:

http://jbowes.dangerouslyinc.com/2007/01/26/git-rebase-keeping-your-branches-current/

http://adam.blog.heroku.com/past/2008/6/30/rebasing_is_editing_commits/

Note: It’s a good policy to never work in your master. Make a branch first for any changes you want to do.

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: