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

前端 未结 4 1812
天涯浪人
天涯浪人 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:44

    I had a situation of git status showing changes, but git diff printing nothing, although there were changes in several lines. However:

    $ git diff data.txt > myfile
    $ cat myfile
    
    

    Git 2.20.1 on raspbian. Other commands like git checkout, git pull are printing to stdout without problems.

提交回复
热议问题