4 ms·
I agree that it won't cause collaboration issues. Perhaps the fear arises because force pushing destroys your backup, so to speak? I freed myself from the fea
by rectang 2y ago
I agree that it won't cause collaboration issues. Perhaps the fear arises because force pushing destroys your backup, so to speak?
I freed myself from the fear of losing data after a rebase when I learned to restore from a commit in `git reflog`. So long as your work made it into an actual commit at some point, everything is recoverable from the local repo's history[1].
[1] Ignoring giganto repos that actually trigger garbage collection.
- fragmede 2y agoyou could do git checkout -b backup-of-branch-foo and push that, before force pushing branch-foo, for the paranoid