-
-
Save Carleslc/18c821b5b677a34cbe57525178ea3257 to your computer and use it in GitHub Desktop.
Git utility for grouping pull/status & add/commit/push
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 | |
set -e | |
if [ "$1" == "-h" ]; then | |
echo "Pull & Status with: gitc" | |
echo "Stage and commit all changes with: gitc MESSAGE" | |
elif [ "$1" != "" ]; then | |
git pull --all | |
git add -A | |
git commit -m "$*" | |
git push --all | |
else | |
git pull --all | |
git status | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment