Search code examples
gitsmartgit

How do I discard all changes in smartgit?


I new to git. And using git with UI(smartgit). My manager said me to discard all changes.I saw this command

git stash save --keep-index

But is there any corresponding button in smartgit?


Solution

  • If you have uncommitted files, you can discard your changes by selecting the changed files you want to discard, right click and select "Discard..." Or just select and hit Ctrl+Z.

    enter image description here

    This is one of my favorite features of SmartGit.