5 ms·
> This is not "ironic" (what is that supposed to mean?) I thought you were being ironic, in the sense of "if you only use git locally you don't mess stuff up".
by virgilp 7y ago
> This is not "ironic" (what is that supposed to mean?)
I thought you were being ironic, in the sense of "if you only use git locally you don't mess stuff up". You definitely pull the shared branches; you just don't force-push to them, and that makes it ok.
> Seriously, don't! When you publish things, publish them.
By "publish" I suppose you mean "push, when there is no upstream branch"? Well, yes, but I also force-push a lot and it's quite ok to do so when you work alone on a branch (e.g. to keep it constantly rebased on top of master). I wouldn't say "don't push, ever" - that's an overkill. I'd just say "protect you master branch so that people can't force-push on it".