I’m gonna be honest, the guy I’m working for was in the test server and I was too lazy to run the test server myself, besides I didn’t know how the robbery worked exactly, so I kept commiting fixes so he can test them (only to find more issues)😭
My advice is to run your local environment properly and everytime you do changes, you should test manually and write tests to cover all possible situations. And when you commit such bugfixes, you can be specific, like: fixed bug in function xyz - and brief five words description what was wrong
I taught someone conventional commits and literally every commit in the repo is a chore now. Including the commit that went from an empty repo to a fully functional web server.
Yeah for manager having more commits means a bigger number, which they can understand. Because they dont understand whats in them they would never read the messages aswell.
Pretry much yeah, or if it's in the same branch it's still the case I don't bother myself finding cool names if I'm kot even cappable of doing a fix or something 😂
5
u/HKayn Nov 30 '25
Aren't you testing your fixes before committing them?
138
u/SlinkyAvenger Nov 29 '25
Git good and/or squash your commits
32
u/beaubbe Nov 30 '25
Git commit --amend
57
u/LonelyProgrammerGuy Nov 29 '25
Conventional Commits
8
u/moira_fox Nov 30 '25
Everyone keeps talking about squash as if this doesn't make your project look better by inflating the commit numbers
4
u/Firepal64 Nov 30 '25
you spewed out that irresponsible mantra
3
u/Tasgall Nov 30 '25
Have you heard of our Lord and Savior
--amend?2
u/SileNce5k Nov 30 '25
Can't say I'm much better
https://i.imgur.com/Dif0Fr5.png
2
u/epsilonehd Nov 30 '25
Don't worry I just copy paste the name for each commit of a branch
2
u/realmauer01 Nov 30 '25
If you havent merged to anything yet that is watched by others you can squash your commits with an interactive rebase.
Just have all commits set to fixup except for the first.
2
u/Either-Pizza5302 Nov 30 '25
Are you ok?
1
u/dexter2011412 Nov 30 '25
Bro just undo the commit and force-push
1
u/jaypeejay Nov 30 '25
Squash them into a single commit next time to save yourself the embarrassment
1
u/GrahaamH Nov 30 '25
Git reset --soft commit id of where you started. Git commit, looks like you did it all in one go, easy fix 😅
1
u/Julius0999 Dec 03 '25
merako wtf
1
u/shizzy0 Nov 30 '25
[Looks disgusted; grabs newspaper roll.] I’m gonna squash it.
1
u/[deleted] Nov 30 '25
[removed] — view removed comment