gpt4 book ai didi

git - "git add * "和 "git add -f *"之间的区别?

转载 作者:行者123 更新时间:2023-12-02 20:35:15 25 4
gpt4 key购买 nike

当我使用 git add * 时,它会跳过一些文件和文件夹。但同样的命令 git add * 对其他一些项目来说效果很好。但是当我使用 git add -f * 时工作正常。

最佳答案

好的,这是来自 Git 引用手册 ref https://git-scm.com/docs/git-add :

The git add command will not add ignored files by default. If any ignored files were explicitly specified on the command line, git add will fail with a list of ignored files. The git add command can be used to add ignored files with the -f (force) option.

关于git - "git add * "和 "git add -f *"之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47366072/

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