Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
git config --global alias.a '!git commit -a -m "commit" && git push'
不知道如何使用!sh
想要在别名中使用参数?
尝试使用临时 bash 功能:
git config --global alias.a '!f() { git commit -am "$1" && git push; }; f' # then use it with git a "My message is awesome."