This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add this to your ~/.bash_profile or similar | |
# say you're on a branch `my-feature` and | |
# you merge the PR for that branch on GitHub | |
# you can now execute `gu` to run the following | |
gu () { | |
branch=$(git symbolic-ref --short HEAD) | |
git checkout master | |
git pull |