Skip to main content
Copy edited (e.g. ref. <http://english.stackexchange.com/questions/4645/is-it-ever-correct-to-have-a-space-before-a-question-or-exclamation-mark#comment206109_4645>).
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

To restore a deleted and commited file  :

git reset HEAD some/path
git checkout -- some/path

gitIt was tested on Git version 1.7.5.4.

To restore deleted and commited file  :

git reset HEAD some/path
git checkout -- some/path

git version 1.7.5.4

To restore a deleted and commited file:

git reset HEAD some/path
git checkout -- some/path

It was tested on Git version 1.7.5.4.

Source Link
Fedir RYKHTIK
  • 10k
  • 7
  • 61
  • 70

To restore deleted and commited file :

git reset HEAD some/path
git checkout -- some/path

git version 1.7.5.4