Can I use “git checkout --” on two files?

前端 未结 6 1064
时光取名叫无心
时光取名叫无心 2020-12-10 10:00

Is it possible to use git checkout -- on multiple files in order to discard the changes?

If so how would I specify multiple files?

6条回答
  •  Happy的楠姐
    2020-12-10 10:53

    Alternatively to what already has been answered I would do something like this for the current path:

    git checkout ./*
    

提交回复
热议问题