Skip to content

Instantly share code, notes, and snippets.

@rowanmanning
Created January 13, 2012 10:38
Show Gist options
  • Save rowanmanning/1605464 to your computer and use it in GitHub Desktop.
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
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