新手问题 为何有的时候 git add 需要两次。。。

zzz6519003 · June 28, 2019 · Last by hiveer replied at July 01, 2019 · 1970 hits

~。~

从来没有。。。过。。

是不是 git add 之后又改了文件?

有时候发现 git add . 和 git add -A 有点区别,但是不记得是 git 的那个版本了 git add .的时候不会把新增的文件 add 成功

git add .之后没有 commit 又修改了东西?

信息这么少,我只能认为是楼主错觉了。

打字打快了,打错了,出了一次错觉,gti add ., 以为存上了,都 commit 了,才发现没加上

Reply to clarkyi

git add . 和 git add -A 有区别?

Reply to zzz6519003

是的,在比較舊的版本,是有區別的 https://gitbook.tw/chapters/using-git/add-to-git.html

但在 Git 2.x 版之後就一樣了

应该是错觉,我貌似从来没有发生过这种事情

楼主是在问自己,你们瞎凑什么热闹

You need to Sign in before reply, if you don't have an account, please Sign up first.