Updating git branches you're not on
27 January, 2015
Do you use git
?
Have you ever been on a feature branch and wanted to pull all the upstream changes into your master
branch before rebasing onto that? Of course you have.
If you’re sick of doing this:
|
|
|
|
Add the following lines to your .gitconfig
:
|
|
|
Now you can do this!
|
|
Thanks to this Stack Overflow answer for the technique, which I just wrapped up in an alias to make it easier to use.