我刚刚遇到了这个消息:
$ git add .
warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal',
whose behaviour will change in Git 2.0 with respect to paths you removed.
Paths like 'README.md' that are
removed from your working tree are ignored with this version of Git.
* 'git add --ignore-removal <pathspec>', which is the current default,
ignores paths you removed from your working tree.
* 'git add --all <pathspec>' will let you also record the removals.
Run 'git status' to check the paths you removed from your working tree.
我认为设置 --all
是一个相当明智的默认选项,因为如果有意外添加的内容,我可以进行重置reset
。我如何使这种行为成为默认行为?
我认为将 --all
设置为默认值是很合理的,因为如果有意外添加的内容,我可以进行重置reset
。我如何使这个行为成为默认行为?