logoalt Hacker News

selckintoday at 8:26 AM2 repliesview on HN

you can just make a backup copy of .git or your entire project dir. When you get lost, just delete your .git, copy from the backup and try again


Replies

delusionaltoday at 9:28 AM

You never need to do that. git-reflog(1) is the most general solution if you will ever need.

heryworttoday at 9:37 AM

Is this a joke? git's whole purpose is to save the history of your project and return to earlier versions when needed

show 1 reply