Created
August 23, 2014 15:45
-
-
Save josefnpat/b683ca9f43645b0158d2 to your computer and use it in GitHub Desktop.
hg/git alias
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/sh | |
if git rev-parse --git-dir > /dev/null 2>&1; then | |
git "$@" | |
elif hg verify 1>/dev/null 2>/dev/null; then | |
hg "$@" | |
else | |
echo "This is not a repo, you dumb fuck." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment