git add commit in one command
git commit -am "message"
3.5
4
// first define a new alias for the commands:
git config --global alias.add-commit '!git add -A && git commit'
// and then use it by typing in the message:
git add-commit -m 'My commit message'
//Credit for the original post on stackoverflow.
Thank you!
4
0
4.8
5
// first define a new alias for the commands:
git config --global alias.add-commit '!git add -A && git commit'
// and then use it by typing in the message:
git add-commit -m 'My commit message'
//Credit for the original post on stackoverflow.
Thank you!
5
0
Are there any code examples left?
New code examples in category Shell/Bash