Skip to content

Instantly share code, notes, and snippets.

@lkuper
Forked from nikomatsakis/gist:2646038
Created June 14, 2012 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkuper/2927486 to your computer and use it in GitHub Desktop.
Save lkuper/2927486 to your computer and use it in GitHub Desktop.
rust-try:
#!/bin/bash
git diff --quiet HEAD
if [[ "$?" != "0" ]]; then
echo "Cannot push to try with uncommitted changes."
exit 1
fi
git push -f mozilla HEAD:try
rust-incoming:
#!/bin/bash
git diff --quiet HEAD
if [[ "$?" != "0" ]]; then
echo "Cannot push to incoming with uncommitted changes."
exit 1
fi
git push mozilla HEAD:incoming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment