Skip to content

Instantly share code, notes, and snippets.

@KidkArolis
KidkArolis / gu.sh
Last active October 10, 2015 22:18
Update local repo after merging a PR
# 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