Working well for me too, when mid month hits and others are dead in the water because they've burned through their token allowance, I'm still producing...
I'm in so many group projects this term and my groupmates commits are just... bad. They're big, do unrelated things, do things other than what the commit says, it's just ugly
You're correct having a lot of commits is good. Sometimes it makes sense to squash them before merging into main but at least for thing actively being developed small focussed changes are just easier to follow
ax0gf3: Fixed calculation method which would sometimes result in a zero value to a bad logical flow in the resolver. Now accounts for 3-phase alternations without overwriting the change buffer.
I don't underatand people that can't describe what they did. The only reason I can think is if you make multiple changes before commiting. If that's the case, just commit one change at a time.
Ot took me too long to realize it’s a cursor. I was trying to figure out if there was a regex reason or maybe some git log makes pretty graph reason, but no. I’m just stupid.
With a git commit you can save the changes that happened to a file since you last used git commit on that file.
Its used for all kind of things and backups are the least useful or unique one.
Primarly it is used to group changes together, if you are working on a change and you dont like it or it breaks something you can go back one commit and everything works again.
Its also really good for teams as everyone can work on their own change, without screwing each other up.
I do git commit -m "[a]" -m "[b]" where [a] is "<id> fixed", or "<date> fix build failure", or "<date> update", something very brief. Followed by [b] containing a brief numeric overview of changes like "(1) update dependency version, (2) fix IT, (3) added unit tests, ..."
Additional -m in a git commit instruction creates paragraphs,. In some platforms like GitHub, they end up in those "additional commentary boxes" (idk their right name), those "[...]" blocks you see if the commit message is too long. Try it out yourself. It's "hidden" and when needed, a person can just expand that.
Ever since I started using JJ I've been entering my descriptions before doing the work. Sometimes I'll make multiple empty changes with the work I'm planning to do for the day, and jump between them to code..
It's been lovely for focusing on the actual tasks I need to do and not getting side tracked with a bunch of stupid unrelated things
Don’t use -m unless it really is something tiny. Commit messages are more important than newbies ever realize. That’s the history of the project that you’re recording. If you don’t plan to stick around then I guess use -m and phone it in but if you care about the project succeeding in the long haul you should be recording the reasons why you made the changes that you did and the intentions behind them in your commit message.
You can learn a lot about why things are the way they are from git history but only if people put it in there in the first place.
Please don't hide critical project info in commit history. It gets lost so easily. Anything more than a sentence should be an inline comment or documentation string
It's the worst when coworkers are like: your messages need X, and should have Y, and you can put a PR# in there, and what feature were these for, and ... on and on... like they are ever going F'ing read the commit messages.
I have no idea what the hell the last push Joan did, except cause the whole thing to break…. Now fixed… Joan, stop touching the code, you little nepo hire.
Pretty sure git add -A is just the default now, which leaves git add * and . Without any differences * replaces itself with all files and folders in the current folder . Is the current folder
As git adds recursively if it gets a folder there is just not any difference anymore.
116
u/MXRCO007 Jun 30 '26
Fix: ai slop code pushed by colleague X
102
u/polokratoss Jun 30 '26
"small changes" Or better yet, "review fixes".
33
u/fuckswithboats Jun 30 '26
Update asfddgfsa
15
u/letmehaveanameyoudum Jun 30 '26
im alone in my project so all i do is
git add .
git commit -m "aijirg hspdfiubhafevughareb"
2
u/sebthauvette Jun 30 '26
I don't underatand people that can't describe what they did. The only reason I can think is if you make multiple changes before commiting. If that's the case, just commit one change at a time.
2
u/ScreenMother9212 Jun 30 '26
git commit -m "fix"
22
u/atzedanjo Jun 30 '26
Here's a handy alias for you:
Just make sure to only use it once per second
30
u/NoobGamerInRealLife Jun 30 '26
git commit -m "" --allow-empty-message
14
u/shadowdance55 Jun 30 '26 •
Mandatory XKCD: https://xkcd.com/1296/
10
u/realnjan Jun 30 '26
minor changes
9
u/Hasinpearl Jun 30 '26
"Bug fixes 01339289101"
7
u/dr-adam-cross Jun 30 '26
minor fixes
10
u/dashinyou69 Jun 30 '26
Meow :3 all time savior
3
u/spore_777_mexen Jun 30 '26
“Non-issue”
3
u/parsention Jun 30 '26
If I remember right this was one of the very few parts where AI was actually welcome by the community
4
u/ralsaiwithagun Jun 30 '26
At this point im just doing the date
2
u/Flame77ofc Jun 30 '26
When u learn Git Conventional Commits is like:
2
u/AvoidSpirit Jun 30 '26
Thinking someone is building the history line manually with custom messages makes me giggle
2
u/drLoveF Jun 30 '26
Ot took me too long to realize it’s a cursor. I was trying to figure out if there was a regex reason or maybe some git log makes pretty graph reason, but no. I’m just stupid.
2
u/Local-Fisherman-2936 Jun 30 '26
Explain like im 5 - what is git? I know that its to do something with backups.
2
u/cpt_futtbucker Jun 30 '26
“Pushed AI slop that managed to fix bug caused by commit xxxxxx”
2
u/PublicToast Jun 30 '26
Yet another post on this sub that reveals no one here has worked an actual job
2
u/enigma_0Z Jun 30 '26
“i have to commit and push this to test the cicd tool in situ because cicd development/testing is abysmal”
2
u/madladslabllc Jun 30 '26
"Yeahhhhh BOIIIIIIII"!
Is a good note
2
u/mokrates82 Jun 30 '26
The correct answer is Ticketnumber - ASDF
1
u/xybolt Jun 30 '26
I do
git commit -m "[a]" -m "[b]"where [a] is "<id> fixed", or "<date> fix build failure", or "<date> update", something very brief. Followed by [b] containing a brief numeric overview of changes like "(1) update dependency version, (2) fix IT, (3) added unit tests, ..."I'm not going to annoy other people.
1
u/FluffyGreyfoot Jun 30 '26
"stuff"
1
u/DrMaxwellEdison Jun 30 '26
Delete those bits, just
git commit. That opens your editor, now you have time to think with a proper blank slate and newlines and whathaveyou.1
u/Perfect-Cookie-3017 Jun 30 '26
Fixed some known bugs
1
u/Fabio11North Jun 30 '26
Me working alone. I have no such problems.
Git commit -m a
1
u/deanominecraft Jun 30 '26
change line “let thing = do_stuff();” to “let thing = do_other_stuff();” 1 line at a time
1
u/CowBoyDanIndie Jun 30 '26
Hrm I start asking ai to write commit messages for me
1
u/Prod_Meteor Jun 30 '26
It should be -r, not -m. Why the chose "message". It's not a message. Its a reason. Commit reason.
1
u/undeadpickels Jun 30 '26
Y'all are bad programmers
1
u/1mahmoud503 Jun 30 '26
.
1
u/Krisanapon Jun 30 '26
update yyyy-mm-ddThh:MM+xx:x0
1
u/Toucan2000 Jun 30 '26
I have my PR descriptions automatically generated by AI using git logs and diffs so I usually just add snarky comments for my LLM to enjoy
1
u/AustinWitherspoon Jun 30 '26
Ever since I started using JJ I've been entering my descriptions before doing the work. Sometimes I'll make multiple empty changes with the work I'm planning to do for the day, and jump between them to code..
It's been lovely for focusing on the actual tasks I need to do and not getting side tracked with a bunch of stupid unrelated things
1
u/potato-dranik Jun 30 '26
idk, some random AI shit I don't understand
1
u/cornmonger_ Jun 30 '26
git commit -m'wip'problem solved on my end
1
u/3hy_ Jun 30 '26
git commit -m "misc"
1
u/crazedizzled Jun 30 '26
AI git messages are a life saver
1
u/rUmutKzl Jun 30 '26
just do git commit without -m and type your whole life story
1
u/appoplecticskeptic Jun 30 '26
Don’t use -m unless it really is something tiny. Commit messages are more important than newbies ever realize. That’s the history of the project that you’re recording. If you don’t plan to stick around then I guess use -m and phone it in but if you care about the project succeeding in the long haul you should be recording the reasons why you made the changes that you did and the intentions behind them in your commit message.
You can learn a lot about why things are the way they are from git history but only if people put it in there in the first place.
1
u/sexytokeburgerz Jun 30 '26
I just pipe git diff into ollama I do not give a shit anymore.
1
u/Healthy_Champion_183 Jun 30 '26
Add first
1
u/whatever_boye Jun 30 '26
ajqhhwvsh
1
u/ProfessionalAd6530 Jun 30 '26
Is this why y'all can't write at least semi-commit messages to save your life? Stop using the
-moption!Skipping the
-mlocks you in vim and by the time you remember how to exit, you'll have thought of what your commit message should say.1
u/edthesmokebeard Jun 30 '26
'.'
1
u/lucid-quiet Jun 30 '26
It's the worst when coworkers are like: your messages need X, and should have Y, and you can put a PR# in there, and what feature were these for, and ... on and on... like they are ever going F'ing read the commit messages.
1
u/TKTK1234567 Jul 01 '26
Update (And maybe a number)
1
u/Silly_Guidance_8871 Jul 01 '26
git config --global commit.defaultmessage "The fuck did I do?"1
u/jimmiebfulton Jul 01 '26
jj commit -m "Git doesn't need to be so hard"
1
u/Responsible-Put-7920 Jul 01 '26
Just hardcore a shell script with ‘bug: your mom’
1
u/the_sudixp Jul 01 '26
1
u/Salt-Aardvark-5105 Jul 01 '26
Test
1
u/claudiomerli Jul 01 '26
https://github.com/coder/aicommit
1
u/Nathanr1225 Jul 01 '26
Wait you don't just put "bug fixes"
1
u/TheOriginalWarLord Jul 02 '26
I have no idea what the hell the last push Joan did, except cause the whole thing to break…. Now fixed… Joan, stop touching the code, you little nepo hire.
1
u/Responsible-Bar7165 Jul 02 '26
"1-line msg, no co-authors"
1
u/mortein79 Jul 02 '26
For the record...
1
u/csabinho Jul 03 '26
various fixes
1
u/Se1d228 Jul 03 '26
Cats
1
u/KawaiiSelbst Jul 03 '26
just `jj new` and no problem c:
1
u/Adaptor2000 Jul 03 '26
My favourite is "WIP dump".
1
u/Fun-Dragonfly-4166 Jul 04 '26
if you are struggling to figure a commit message there is --allow-empty-message
1
u/Basic_Reporter9579 Jul 04 '26
small changes
fix
wip
revert
1
u/JoCraft2010 Jul 04 '26
There's a tool for that: https://whatthecommit.com/
1
u/itaranto Jul 23 '26
Sure. My teammates don't know what a "rebase" is.
0
u/newcarrots69 Jun 30 '26
I ask claude to summarize what Ive staged.
-5
u/Benderos133 Jun 30 '26
Pov when you want to write a commit message and it's not the hardest thing in the room 😏
1
u/[deleted] Jun 30 '26
[removed] — view removed comment