您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> Linux >> 为什么在git add 之后,再查看git status ,会显示 nothing to commit

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

来源:网络整理     时间:2016/5/27 14:08:39     关键词:

关于网友提出的“为什么在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


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

相关图片

相关文章