4 ms·
Love it when people don't talk about rebase. considering its both dangerous, and a requirement to use for many teams.
by nmz 4y ago
Love it when people don't talk about rebase. considering its both dangerous, and a requirement to use for many teams.
- vr46 4y agoRebase is the opposite of dangerous, it brings everything back to a specific state and forces the dev to fix conflicts themselves rather than make it someone else’s problem. What’s dangerous is using things one doesn’t understand and not asking how to use it or reading up on it.
- SoftTalker 4y agoYeah that's one of the ones I don't touch.
- inferiorhuman 4y agoIt's a lot less dangerous than you'd think since you can salvage a lot of mistakes by digging into the reflog.
- dahart 4y agoRebase isn’t dangerous in safety terms, the main danger is it can cause frustration when people use it without understanding it first. And as long as people know to not rebase public history, the frustration is usually limited and contained and easily resolved. It might be dangerous if frustration leads to spastic repo nuking, which can happen. Btw A lot of people who say rebase is dangerous use git stash and have no idea that stash is one of the actual dangerous things to do, much more dangerous than rebase, and not any easier than branching. “If you mistakenly drop or clear stash entries, they cannot be recovered through the normal safety mechanisms.” https://git-scm.com/docs/git-stash https://git-scm.com/docs/git-stash