Skip to content

Instantly share code, notes, and snippets.

@theuves
Created February 16, 2019 14:09
Show Gist options
  • Save theuves/7b17c94ae87f2c91504f35eb8aee113a to your computer and use it in GitHub Desktop.
Save theuves/7b17c94ae87f2c91504f35eb8aee113a to your computer and use it in GitHub Desktop.
GIT: Add, commit and push in a single command.
#!/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
@theuves
Copy link
Author

theuves commented Feb 16, 2019

Try install it with the following command:

curl https://gist.githubusercontent.com/theuves/7b17c94ae87f2c91504f35eb8aee113a/raw/dccd0e82e244a730edb8cfa2a b4b95c15d92fec3 > ~/bin/gamp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment