我认为我在 vscode 控制台中看到了 git commit
git add -A -- .
我知道了
git add -A
表示
但是什么
git add -A -- .
是什么意思?
最佳答案
来自documentation :
--
This option can be used to separate command-line options from the list of files, (useful when filenames might be mistaken for command-line options).
这是不言自明的。此外,.
表示当前目录。
因此该命令实际上意味着暂存所有文件,即“将当前目录和子目录中的所有跟踪和未跟踪文件(包括删除)添加到 git 索引”。
关于git - 什么 git add -A -- 。意思是,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52352967/