3 ms·
Well... you can force push to a remote with sufficient privs, but you really don't want to do that if you can help it.
by cestith 4y ago
Well... you can force push to a remote with sufficient privs, but you really don't want to do that if you can help it.
- bayindirh 4y agoWhy should I abuse git while I can commit my developments part by part with nice descriptions?
- sshine 4y agoBecause you may want to back up your work remotely before you have the time to write something nice. I had to leave halfway through writing a unit test today. My colleague asked me to back up the code by pushing it. And now I'm back, fixing that test, writing that commit message. Most likely we'll merge right after, so my colleague probably won't need to add more, so the branch is in my control.
- sshine 4y agoA remote can be your personal remote endpoint, or it can be on a shared remote endpoint, but prefixed with your username. As long as you `--force-with-lease` to a feature branch you control and agree on a protocol with potential collaborators, the harm is minimal. I mostly avoid creating these kinds of conflicts when people's limited git experience would cause stress or unnecessary use of people's time fiddling with the history. Or if more than one person is doing stuff independent of one another. I've had colleagues that frown on rebase, and people who can't not. One of the beauties (and complexitties) of git is that it allows for this diversity of workflow.