为什么在git add . 之后,再查看git status ,会显示 nothing to commit

新手上路,请多包涵

我在git bash 中, 用git add .了整个文件夹的文件到暂存区,但是之后用git status后git bash显示, on branch master nothing to commit,working directory clean,
这个是为什么?

阅读 8.1k
1 个回答

应该你没有生成本地版本啊 git add . 已经将代码放到暂存区了 你紧接着要创建本地版本。

推荐问题