gpt4 book ai didi

git - 什么 git add -A -- 。意思是

转载 作者:太空狗 更新时间:2023-10-29 14:26:57 25 4
gpt4 key购买 nike

我认为我在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com