【发布时间】:2021-01-19 05:40:26
【问题描述】:
有人可以解释git add 的-A 标志吗? (--all, --no-ignore-removal)
我可以在手册页中看到它是这样说的:
-A, --all, --no-ignore-removal
Update the index not only where the working tree has a file
matching <pathspec> but also where the index already has an entry.
This adds, modifies, and removes index entries to match the working
tree.
If no <pathspec> is given when -A option is used, all files in the
entire working tree are updated (old versions of Git used to limit
the update to the current directory and its subdirectories).
将其翻译成简单的英语是否正确:“当您运行命令时,无论您在目录树中的哪个位置,它都会添加文件”。这样可以吗?
另外,这是否意味着“只是为了确定而一直运行git add -A .”?
【问题讨论】:
标签: git version-control