作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我认为我在 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/
我是一名优秀的程序员,十分优秀!