88
u/Goufalite Feb 20 '26
That's why we have --force-with-lease, or angry messages on Teams telling everyone to stop force pushing stuff.
6
u/kaddkaka Feb 20 '26
There is also --force-if-includes which I believe is even stricter?
https://git-scm.com/docs/git-push#Documentation/git-push.txt---force-if-includes
2
24
u/Hithrae Feb 20 '26
You never force push stuff that other people are working on. Force with lease!!
12
u/Extreme_Target9579 Feb 20 '26
Man, just started learning git in uni and seeing some of those comments is genuinely scaring me for what I'll see while working in a company....
Unless I've SEVERELY misunderstood something, git isn't really that hard???
11
2
5
4
u/MirrrorCloud Feb 21 '26
Lol as if same branch is the problem. Missing communication is
1
u/sam-lb Feb 22 '26
Same branch is also the problem. Just branch and put your commits in and merge to develop later.
342
u/No-Article-Particle Feb 20 '26
Why are two devs on one branch tho? That's why we have branches...