Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669026y@Coffe2Code you got to work these things, gentle yet firm and precise.
Your git repo should be the same 😉 -
@C0D4 Every time I see this, I think Git shouldn't force unless you also specify --yesidoreallywantthis and --iknowipromiseiwontdothisallthetime.
It's a bloody dangerous operation, but people seem to throw the flag around like it's a normal part of repo management. -
C0D4669026y@AlmondSauce I think I've only used force once, but that was due to a merge request being 6months worth of work by another dev and the conflict list was beyond repair.
Other then that, Getting into a good habit of pull/push regularly keeps the forcing away. -
@C0D4 Oh sure, I've used it in similar situations. But I've always been rather scared, and double checked everything before doing so.
It certainly shouldn't just be "one of these things you do if you get some kind of error", which seems to be how many people rock. -
roger1085yIt's quite common for me to do this in feature branches, I like to keep a clean history and possibly with all the commits building/passing tests, so I keep rebasing on top of development, doing fixups and squashing. btw --force-with-lease is better than just force if you don't do a fetch before pushing
Related Rants
Wife: commit, and come to bed..
Me:
> git commit -m "wife wants me to go to bed"
> git push origin master -f
joke/meme
wife
bed
commit
push
push hard
git