accidentally deleted a folder

0 Rehman . · September 11, 2015
i accidentally deleted a folder through git however i haven't committed it yet can we get that folder back?

Post a Reply

Replies

Oldest  Newest  Rating
+2 Ian Arbuckle · September 11, 2015
Try 

 git reset --hard
+1 Rehman . · September 11, 2015
will this undo the last "accident" or it will revert all changes?
+1 Rehman . · September 11, 2015
yayy it actually worked, i was afraid but i made it confirm that only mistaken changes were in last deleted folder only
0 Ian Arbuckle · September 12, 2015
The command should be able to roll back to the previous state. Glad it worked out for you!
0 Arth I-Soft · September 12, 2015
Thanks the i got same problem and it got solved by your advice thanks a lot
  • 1

General Chat

107,348 followers
About

Chat about anything non-computer related including, music, movies, tuna sandwiches, and more!

Links
Moderators
Bucky Roberts Administrator