-
-
Save theuves/7b17c94ae87f2c91504f35eb8aee113a to your computer and use it in GitHub Desktop.
GIT: Add, commit and push in a single command.
This file contains hidden or 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
#!/usr/bin/env bash | |
# gamp | |
# | |
# GIT: Add, commit and push in a single command. | |
# | |
# Created on: 2019-02-16 | |
# Author: Matheus Alves <[email protected]> | |
# License: MIT | |
if [[ ! "$1" ]]; then | |
echo "Missing a comment to your commit." | |
exit "1" | |
fi | |
git add . | |
git commit -m "$1" | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try install it with the following command: