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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -