1

GitHub Desktop has a nice feature named "Discard All Changes"

How do I do the same thing using Git CLI, but NOT use git stash?

enter image description here

Riveascore
  • 1,724
  • 4
  • 26
  • 46

1 Answers1

0

Using:

That would be, from anywhere inside your repository:

git restore -SW :\

That would restore your working tree and index to HEAD content

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250