One GIT command to rule them all (gacp: git-add-commit-push)
alias, bash, command, git, terminal
Solution
If you are on linux, just write a shell script or create an alias
For example.
#!/usr/bin/sh
set -x # Output executed commands
set -e # Make script fail as soon as one command fails
read MESSAGE
git add -A
git commit -m "$MESSAGE"
git push origin master
Problem
I would really love a specialized git alias / bash function that can do the following. ``` git add -A git commit -m "$MESSAGE" git push origin master ``` All with a single command. ``` gacp > My message CONTENTS OF COMMIT CONTENTS OF PUSH ``` Can this be done? Could someone share some sample code? Is there a native git function that can do this?