Tag Archives: git branch

Make your bash aware of git branch on Ubuntu

If you’re someone who has multiple  git branches on a project and seem to always do git branch to check which branch you’re in. Then here’s how you can make your bash aware of a git branch. Well, I’m not sure if this works on others, but it sure does works in my Ubuntu Hardy. [...]

Comments ( 0 )

Git. Make sure branch is updated

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 [...]

Comments ( 0 )

Git. Pushing your local branch to remote branch repo

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 [...]

Comments ( 0 )