我经常做这个操作:
bash
$ git add --update $ git status --short
于是,在.gitconfig里加入了
ini
[alias] au = add --update ss = status --short
但是,这样还是需要输入
bash
$ git au; git ss
怎样才能把这两条指令简化成$ git au
?
注:.bashrc
的方法不算数。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
类似这样。
执行
git up
,就会执行那三条命令。