📜  git commit 并在一个命令中添加 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:16.097000             🧑  作者: Mango

代码示例3
// 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.