Comment by janpeuker
2 days ago
> as long as I keep their hashes
that means my hashes or their hashes or them keeping my hashes, I am never sure
2 days ago
> as long as I keep their hashes
that means my hashes or their hashes or them keeping my hashes, I am never sure
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
You never need to do that. git-reflog(1) is the most general solution if you will ever need.
if you're a beginner thats going to be very difficult, restoring the git dir a few times makes the learning process much faster, till it all clicks and you don't need too anymore
2 replies →
Is this a joke? git's whole purpose is to save the history of your project and return to earlier versions when needed
It's a super simple solution for which you can be certain that you have all the knowledge needed to perform the restore operation.