git - Restore original file which was deleted during patch creation -
I have just started using git for some reason I have to make a patch of my changes which will be modified by file revision + 4 new file creation) included. I have been able to successfully make a patch but in the process how some of these have been made, the files that I have created have been removed. I want those files again how can I get it?
"post-text" itemprop = "text">
If those files were committed, then a simple
git checkout - # or GIT checkout -f head The contents of the working directory should be sufficient to checkout again (but this should be any Present - can override non-now-committed work), so be careful (a git stash is useful first ).
Comments
Post a Comment