git add
and commit
script.
A single line git command for to do:
-
git add filename
-
git commit -m "a commit description"
-
Create the
sh
file where you want. -
Create an alias on your bash for use
gac
command on the created script, example:
echo 'alias gac="/home/your_user/gitscripts/gac.sh"' >> ~/.bashrc
or
echo 'alias gac="/home/your_user/gitscripts/gac.sh"' >> ~/.zshrc
- give permissions to this file:
chmod +x gac.sh
gac filename "a commit comment"