3 ms·
If the result of the undo is that the remote branch (say main) is back at the point where it was just before, then that is actually a kind of change one could a
by jononor 4y ago
If the result of the undo is that the remote branch (say main) is back at the point where it was just before, then that is actually a kind of change one could allow? As it does not rewrite history, just reset to previous point in time.
But to really support this well, I think git would need a git commit object which means "reset to previous state".
- stephen_g 4y agoThe issue is if somebody else has pulled the remote branch and then you remove the commit, suddenly their branch and yours doesn't match. And then they can't push without massaging it. I hate revert commits but often you have to do them if you make a mistake because usually force pushes will be disabled on master for that reason.