Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created May 9, 2012 16:11
Show Gist options
  • Save nikomatsakis/2646038 to your computer and use it in GitHub Desktop.
Save nikomatsakis/2646038 to your computer and use it in GitHub Desktop.
rust-try:
#!/bin/bash
git diff --quiet HEAD
if [[ "$?" != "0" ]]; then
echo "Cannot push to master with uncommited changes."
exit 1
fi
git push -f mozilla HEAD:try
rust-master:
#!/bin/bash
git diff --quiet HEAD
if [[ "$?" != "0" ]]; then
echo "Cannot push to master with uncommited changes."
exit 1
fi
git push mozilla HEAD:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment