How to Diff between local uncommitted changes and origin

后端 未结 4 1483
我在风中等你
我在风中等你 2021-01-29 20:49

Let\'s say I cloned a repository and started modifying files. I know that if I have local uncommitted changes, I can do a diff as follows git diff test.txt and it w

4条回答
  •  悲哀的现实
    2021-01-29 21:09

    To see non-staged (non-added) changes to existing files

    git diff

    Note that this does not track new files. To see staged, non-commited changes

    git diff --cached

提交回复
热议问题