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,616
  • 4
  • 24
  • 45

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,129,465
  • 480
  • 4,036
  • 4,755