How can I discard modified files?

后端 未结 10 756
甜味超标
甜味超标 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:12

    You can use:

    git checkout .
    

    To understand the difference between git checkout and git reset refer to the following question :

    What's the difference between "git reset" and "git checkout"?

提交回复
热议问题