git checkout all the files

前端 未结 2 1084
無奈伤痛
無奈伤痛 2020-12-22 17:03

How can I get rid of all the changes in all the files of my repository?

Say I am in a branch and I did some changes. git status returns

2条回答
  •  渐次进展
    2020-12-22 17:20

    Other way which I found useful is:

    git checkout  
    

    Example:

    git checkout *.html
    

    More generally:

    git checkout  
    

提交回复
热议问题