2 ms·
> The first is that git makes it really easy to rewrite history, without really offering much in the way of safety rails It does, I just think they are not obv
by globular-toast 5y ago
> The first is that git makes it really easy to rewrite history, without really offering much in the way of safety rails
It does, I just think they are not obvious enough because people haven't read an article like the one posted here.
Git is an append-only data store. You can't lose anything as long as you have committed it. Rebasing does rewrite history, but it doesn't delete the old history. It's still there. The reflog links to it. The old remote tracking branch links to it. You could even leave a tag there to link to it. There are many ways to get back.