3

I am using SourceTree and i had some modified files under "Working Copy Changes" section which were being tracked as shown by the yellow icon in the image. But i discarded those changes. Now how to revert those changes?enter image description here

Diffy
  • 2,339
  • 3
  • 25
  • 47
  • 1
    By "revert", do you meaning "restore the changes that have just been discarded"? Were those changes added to the index at any point? – VonC Aug 08 '14 at 07:07
  • Yes i mean restore.And i have no idea whether they were added to index or not. – Diffy Aug 08 '14 at 07:21
  • If they were added, you can try http://stackoverflow.com/a/22346161/6309 – VonC Aug 08 '14 at 07:33

1 Answers1

0

If the items are not staged (in the top pane), you can revert them by right-clicking on one or multiple items and clicking "revert". This will perform git checkout -- filename for each selected item.

MikeyW
  • 51
  • 3
  • "Revert" has a different purpose.It is for reverting the changes made since last commit. – Diffy Sep 05 '15 at 08:51