git - entry level note

来源:互联网 发布:ssm项目管理系统源码 编辑:程序博客网 时间:2024/06/07 06:08
when you modified a staged file, if you run git status, you will see this file in bot staged and unstated list. To resolve this, you just need to run git add this file again.That is to say, git add command not only means which it looks, but also supplies other functions.


If the git status is too vague for you, you can use git diff command to inspect detailed info.


git diff only shows the difference between the unstated files and staged area, which won't tell you the changes you will commit to remote repository.
0 0