Created
January 13, 2012 10:38
-
-
Save rowanmanning/1605464 to your computer and use it in GitHub Desktop.
Git aliases: pull = '-', push = '=', pull+push = '-='. Not using `alias` because I couldn't work out how to make it accept '-' and '='. Tested on Mac OS X 10.7
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
tmp_prefix="/usr/local/bin/" | |
echo "git pull;" > $tmp_prefix-; | |
echo "git push;" > $tmp_prefix=; | |
echo "git pull && git push;" > $tmp_prefix-=; | |
chmod 755 $tmp_prefix- $tmp_prefix= $tmp_prefix-=; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment