关于网友提出的“为什么在git add 之后,再查看git status ,会显示 nothing to commit”问题疑问,本网通过在网上对“为什么在git add 之后,再查看git status ,会显示 nothing to commit”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:为什么在git add 之后,再查看git status ,会显示 nothing to commit
描述:我在git bash 中, 用git add .了整个文件夹的文件到暂存区,但是之后用git status后git bash显示, on branch master nothing to commit,working directory clean,
这个是为什么?
解决方案1:说明你当前目录下的内容都已经 commit
进去过了, 所以你再次执行add .
是没有意义的, 因为 nothing to commit, working directory clean
.

以上介绍了“为什么在git add 之后,再查看git status ,会显示 nothing to commit”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/1340678.html