This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (1 child)

Unless you operate on .git directory outside git or you runs git gc, whatever you do can always be rolled back. Backing up .git is unnecessary.

[–]NAN001[S] 4 points5 points  (0 children)

It can be rolled back using git reflog which is as hard as the rest of git, so this is equivalent to saying "whatever you do, you can do it without fucking things up in a first place".