-
-
Save mrkaspa/1066efecc8bfa5a10e3e to your computer and use it in GitHub Desktop.
No more large commits
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/bash | |
ARGSI="${#}" | |
if [ $ARGSI == "1" ]; then | |
git add -A && git commit -m "$1" && git push origin master | |
else | |
if [ $ARGSI == "2" ]; then | |
git add -A && git commit -m "$1" && git push origin $2 | |
else | |
if [ $ARGSI == "3" ]; then | |
git add -A && git commit -m "$1" && git push $2 $3 | |
else | |
echo "You have to pass 1, 2 or 3 arguments" | |
fi | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment