Posts tagged with "git"

Git – tracking branches

March 2nd, 2012

In Git, if you find yourself constantly typing git push origin branchname to push your local commits to the remote branch, here’s a tip: make your local branch automatically track your remote branch. When creating a new remote branch, here’s how you can make your local branch track its remote branch: # creates a new [...]


Git bisect

January 14th, 2012

You are part of a large team, and a bug has secretly crept into your codebase. You are on a mission to find out which exact commit caused that bug. I found myself on such a mission recently, and I thought I will write a quick post on how I used the awesome bisect command [...]


Using git pull –rebase

October 17th, 2011

One thing that I noticed myself doing with git was to to commit my changes only after stashing my changes, and performing a git pull to fetch the latest set of commits. I do this primarily to avoid the merge commits that happen when I do a git pull, after a local commit. I hate [...]