How to show uncommitted changes in Git and some Git diffs in detail

前端 未结 4 1816
天涯浪人
天涯浪人 2020-12-22 14:50

How do I show uncommitted changes in Git?

I STFW\'ed, and these commands are not working:

teyan@TEYAN-THINK MINGW64 /d/nano/repos/PSTools/psservice (         


        
4条回答
  •  一个人的身影
    2020-12-22 15:28

    You have already staged the changes (presumably by running git add), so in order to get their diff, you need to run:

    git diff --cached
    

    (A plain git diff will only show unstaged changes.)

    For example: Example git diff cached use

提交回复
热议问题