That way, when you do push your branch up for a pull request and code review it can be easily merged in with the master branch.
Assuming you're on my-feature-branch...
Rebase Commands
git checkout master
git pull
git checkout my-feature-branch
git rebase master
git push -f
Notes
Be sure to run git push -f, not what git is likely to suggest after you run the git rebase master command (git pull).If you do have the misfortune of pulling changes into the rebase work you did, then you'll end up with a bunch of recent commits to the master branch, that you've already accounted for, in your pull request...
...and you will likely need to delete that branch and recreate it by cherry picking the commits you need.
References
http://git-scm.com/docs/git-rebaseThis work is licensed under the Creative Commons Attribution 3.0 Unported License.