How to discard all changes made to a branch?

后端 未结 9 1305
粉色の甜心
粉色の甜心 2021-01-29 18:03

I\'m working in a branch (i.e. design) and I\'ve made a number of changes, but I need to discard them all and reset it to match the repository version. I thought

9条回答
  •  鱼传尺愫
    2021-01-29 18:51

    @Will, git immersion is a really nice and simple git tutorial. it will show you how to undo changes for the following cases: unstaged, staged and committed. labs 14-18

提交回复
热议问题