How can I discard modified files?

后端 未结 10 739
甜味超标
甜味超标 2020-12-13 18:00

This is a Linux 2.6 kernel repository. I git clone it to my local host.

After that. I didn\'t make any change. But when I \"git status\". I found 13 modified files.

10条回答
  •  自闭症患者
    2020-12-13 18:09

    By entering these commands in succession.

    git stash
    git stash drop
    

    git stash stores modified files on a stack for later retrieval.

    git stash drop discards them.

提交回复
热议问题