Last active
August 29, 2015 14:27
-
-
Save jcjones/59f1967fd9bb72aa452b to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
TOPIC=$(git symbolic-ref --short HEAD 2>/dev/null) | |
DEST=master | |
die() { | |
echo $@ | |
exit 1 | |
} | |
git pull --rebase origin ${DEST} || die | |
git push origin HEAD:refs/for/${DEST}/${TOPIC} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment