I have no preference! It was to do with Spring/yaml config and some really strange conflict which required the use of single quotes. I'm still a total noob in the world of software dev, so I wouldn't be able to explain why it worked 🤣
My commit messages have gotten extremely lazy since I start squashing all my commits down to one. I just describe the PR on the first commit message and write nonsense in all the others.
I know that if you are on the local repository where the commits were originally created they'll remain accessible through recovery methods but AFAIK orphaned commits aren't synced to other machines.
That's correct. This is for work, which uses GitHub. The dangling commits remain accessible via their sha through the web ui, so I can link them in the PR description. I don't put them in the actual commit message.
I think these are garbage collected eventually, but no idea on cadence. It's long, anyway.
"28496 - there, it's fucking fixed you twat waffle."
Ticketed bug bosses son found. Dude nagged his dad who nagged us until it got fixed. Boss doesn't review code. And for the sake of a half dozen coworkers, I hope he never does.
Previous commit was some stupid easy fix I didn't even bother compiling. Well, I should have, because it was the first time in recent memory I committed some code with a missing semicolon...
Before anyone asks : no, we don't do reviews ¯\_(ツ)_/¯
/* due to customer repeatedly deleting code and backups because they where "unnecessary" we refuse to work with said customer from now on. Whoever is in charge after us, be warned.*/
Whatever works for you, but I love writing a quality commit message. It's like my reward for doing all that work - wrapping up the changes in a nice little summary.
Sometimes I just scroll through my commits when I'm feeling blue...
I had just figured out how to fix a bug that broke our in house reminder system. My smug ass put hoho as the commit message for figuring something out that the previous guy couldn't. Of course it came back to bite me in the ass THIS WEEK when the system broke again in a similar fashion, but I couldn't remember what I had done.
This is what I hate about squashing. I love the fact that my crazy journey to a finished feature is there in the log for everyone to see, including myself lol. But squashing makes me feel empty when I write commit messages. Where's the fun... Just a straight line of perfectionism. Maybe someone has a crazy but cool idea that would be worth picking. 🍒
Maybe. I do more DevOps these days, so tend to have many small changes that can’t even be tested without checking them in and running in CI. I’d have hundreds of “fix unit tests” commits alone
I've been thinking about that when talking to my DevOps colleagues, that there's gotta be a better way to test CI before committing. The whole change-commit-test dance would kill me if on a daily basis. So cumbersome.
We squash. I'm not really interesting in your local journey to land the change. It's sometimes useful during review, but after that it's mostly the state of the main branch I care about. It's what I need to bisect anyway.
I don't like commits that are just references to issues. Copy the issue into the commit message so git blame tells you something useful. Unless it's just closing a simple big. Then the title and issue reference are plenty.
Added zip code to the reseller portal when batch-creating transactions in
I try to start off descriptive, in case I want to diff a few changes back. After that, sometimes I write notes or general reflections on life in there... Until yesterday I thought no one was reading them
I think long messages are a good habit. Start with something readable in the history, past that who cares? Most people rarely read past the preview, and if they do they want details
I think it's great because it makes you reflect on what the goal was and what you did. I sometimes stop to make a quick change as I'm writing, or just collect my thoughts before mentally dismissing the task
I wrote a brief manifesto on my hatred of Python because some refactoring ended up having a comma at the end of a line, which screwed me over for about an hour until I happened to noticed it.
160 Comments
Schal330@lemmy.world · 49 pts · 2y
Removed double quotes, added single quotes
iAvicenna@lemmy.world · 35 pts · 2y
someone later on -m "removed single quotes, added double quotes"
QuazarOmega@lemy.lol · 19 pts · 2y
More commits == More money!!!
gravitas_deficiency@sh.itjust.works · 7 pts · 2y
Real talk: I have worked at a company where an exec briefly had the bright idea to rank developers on number of commits made.
You can imagine how that turned out.
He wasn’t an exec for very long.
QuazarOmega@lemy.lol · 3 pts · 2y
lmaoo, I can't believe someone actually did that and was serious about it.
I'm already imagining commits piling up with comments like:
userstouser_list"user_listand that's it, don't you dare change it again"Good riddance I guess
gravitas_deficiency@sh.itjust.works · 5 pts · 2y
Oh, no, we can do better.
Every single line of every single PR is an individual commit. And never squash-commit.
QuazarOmega@lemy.lol · 2 pts · 2y
Talk about atomic commits
gravitas_deficiency@sh.itjust.works · 2 pts · 2y
If you really want to nuke it from orbit: do it for every character.
It is absolutely technically feasible to go further than that, but I think that’s the point of diminishing returns in terms of effort.
muntedcrocodile@lemm.ee · 2 pts · 2y
Why do u prefer single quotes?
grrgyle@slrpnk.net · 4 pts · 2y
Not Shall330, but double quotes can imply variables in the string in some languages.
muntedcrocodile@lemm.ee · 2 pts · 2y
Which languages are these?
bitchkat@lemmy.world · 5 pts · 2y
PHP for one. "$x" will interpret the variable $x. '$x' does not.
muntedcrocodile@lemm.ee · 1 pts · 2y
Well there's ya problem ur using php.
charolastra@programming.dev · 4 pts · 2y
Also bash
nyan@lemmy.cafe · 2 pts · 2y
And Perl.
Schal330@lemmy.world · 3 pts · 2y
I have no preference! It was to do with Spring/yaml config and some really strange conflict which required the use of single quotes. I'm still a total noob in the world of software dev, so I wouldn't be able to explain why it worked 🤣
1boiledpotato@sh.itjust.works · 36 pts · 2y
"Update"
It was my dotfiles, ok?
Anticorp@lemmy.world · 4 pts · 2y
You're going to regret not adding the second sentence to the commit message some day.
grrgyle@slrpnk.net · 6 pts · 2y
Bold of you to assume there is a cohesive theme to dotfile commits. Usually it's just been long enough that I don't want to lose my latest tweaks
steersman2484@sh.itjust.works · 33 pts · 2y
Squash me later
Assman@sh.itjust.works · 8 pts · 2y
My commit messages have gotten extremely lazy since I start squashing all my commits down to one. I just describe the PR on the first commit message and write nonsense in all the others.
grrgyle@slrpnk.net · 5 pts · 2y
I've been adding the commit shas + messages to the final description, if anyone wants to see my exploratory work.
xmunk@sh.itjust.works · 2 pts · 2y
I know that if you are on the local repository where the commits were originally created they'll remain accessible through recovery methods but AFAIK orphaned commits aren't synced to other machines.
grrgyle@slrpnk.net · 2 pts · 2y
That's correct. This is for work, which uses GitHub. The dangling commits remain accessible via their sha through the web ui, so I can link them in the PR description. I don't put them in the actual commit message.
I think these are garbage collected eventually, but no idea on cadence. It's long, anyway.
bravesilvernest@lemmy.ml · 3 pts · 2y
generaldenmark@programming.dev · 27 pts · 2y
Initial commit
Skullgrid@lemmy.world · 5 pts · 2y
grats on formalising your (new) project
hemko@lemmy.dbzer0.com · 2 pts · 2y
Initial commit #463
alyth@lemmy.world · 27 pts · 2y
eskimofry@lemmy.world · 16 pts · 2y
I thought we lost you ... Jia Tan!
camr_on@lemmy.world · 18 pts · 2y
God read my code and it made Him cryving_thor@lemmy.one · 16 pts · 2y
Update coffee list and tex files.
...and yes we have our office coffee list in a git repo.
herrcaptain@lemmy.ca · 4 pts · 2y
Do new hires have to submit a pull request to get in on it? If so, I'm guessing the non-technical staff don't get to drink a lot of coffee.
ving_thor@lemmy.one · 3 pts · 2y
It's actually just a paper list where people make ticks for coffee. That is then manually synced to an hledger file in git.
Serinus@lemmy.world · 4 pts · 2y
For what? To keep track of who's drinking coffee? Are you charging for coffee?
MenacingPerson@lemm.ee · 2 pts · 2y
Mfw I
git push -fxmunk@sh.itjust.works · 1 pts · 2y
Always force-with-lease
ving_thor@lemmy.one · 2 pts · 2y
I work in academia... There is no free coffee here.
theneverfox@pawb.social · 3 pts · 2y
Do you have any plans to open source your coffee list? I want to add this feature where I get an iced coffee in the morning
Zahtu@feddit.de · 16 pts · 2y
"Changed consent banner text to reflect from legal, even though they are wrong"
Anticorp@lemmy.world · 13 pts · 2y
"circumvented GDPR despite calling out strong ethical objections, because legal & management are forcing me to"
AllHailTheSheep@sh.itjust.works · 15 pts · 2y
"fix for real this time"
Jyek@sh.itjust.works · 13 pts · 2y
"28496 - there, it's fucking fixed you twat waffle."
Ticketed bug bosses son found. Dude nagged his dad who nagged us until it got fixed. Boss doesn't review code. And for the sake of a half dozen coworkers, I hope he never does.
Sylvartas@lemmy.world · 12 pts · 2y
";"
Previous commit was some stupid easy fix I didn't even bother compiling. Well, I should have, because it was the first time in recent memory I committed some code with a missing semicolon...
Before anyone asks : no, we don't do reviews ¯\_(ツ)_/¯
UFODivebomb@programming.dev · 2 pts · 2y
Join me and use
~to mean "shit changed just check the diff"Hexarei@programming.dev · 4 pts · 2y
For those I just commit with the message "ngl there's a lot of changes in here"
towerful@programming.dev · 3 pts · 2y
+2543; -5642;Strykker@programming.dev · 1 pts · 2y
"Moved code base from 2 spaces to 4."
FreshLight@sh.itjust.works · 12 pts · 2y
"I'm sorry, guys."
joshcodes@programming.dev · 11 pts · 2y
git commit -m "if this doesn't fix it I'm looking up availabilities at my nearest maccas"
iflyspaceships@lemmy.world · 11 pts · 2y
Hrfg7ygfrvvby
grrgyle@slrpnk.net · 11 pts · 2y
DumbAceDragon@sh.itjust.works · 10 pts · 2y
"My laptop died before I could push these"
Not a good commit name I know, but my laptop stopped booting and I just really needed to continue from my desktop.
It's a student project anyway.
Mikufan@ani.social · 10 pts · 2y
/* due to customer repeatedly deleting code and backups because they where "unnecessary" we refuse to work with said customer from now on. Whoever is in charge after us, be warned.*/
Tar_alcaran@sh.itjust.works · 5 pts · 2y
Oof
ChaoticNeutralCzech@feddit.de · 9 pts · 2y
programmer_belch@lemmy.dbzer0.com · 9 pts · 2y
French dead link?
xmunk@sh.itjust.works · 9 pts · 2y
Converted more tests to use the correct handle.
quinkin@lemmy.world · 9 pts · 2y
Fix for vendor lies.
slazer2au@lemmy.world · 8 pts · 2y
A
Because who cares for commit messages to my private repo?
Shareni@programming.dev · 23 pts · 2y
You when you mess something up and only figure it out later?
slazer2au@lemmy.world · 1 pts · 2y
I do Ansible playbooks so not too had to see when I ballzed it up.
grrgyle@slrpnk.net · 6 pts · 2y
Whatever works for you, but I love writing a quality commit message. It's like my reward for doing all that work - wrapping up the changes in a nice little summary.
Sometimes I just scroll through my commits when I'm feeling blue...
TRBoom@lemm.ee · 8 pts · 2y
I had just figured out how to fix a bug that broke our in house reminder system. My smug ass put hoho as the commit message for figuring something out that the previous guy couldn't. Of course it came back to bite me in the ass THIS WEEK when the system broke again in a similar fashion, but I couldn't remember what I had done.
Reddfugee42@lemmy.world · 6 pts · 2y
Diff
TRBoom@lemm.ee · 3 pts · 2y
I know I know. I figured out what I did before I thought of that... which was just now when you said it.
nothacking@discuss.tchncs.de · 7 pts · 2y
Prevent subprocess from killing itself until finished.
skip0110@lemm.ee · 7 pts · 2y
WIP
englishmaninmadrid@programming.dev · 3 pts · 2y
You copycat.
bravesilvernest@lemmy.ml · 7 pts · 2y
Revert this later
hoshikarakitaridia@lemmy.world · 4 pts · 2y
Yikes
Vuraniute@thelemmy.club · 6 pts · 2y
init: add readme
mexicancartel@lemmy.dbzer0.com · 6 pts · 2y
modified: index.html
Rip
ILikeBoobies@lemmy.ca · 6 pts · 2y
“Initial commit, come back later”
vox@sopuli.xyz · 6 pts · 2y
"render trans chunks after entities/sel box etc "
hoshikarakitaridia@lemmy.world · 6 pts · 2y
Very progressive.
evening_push579@feddit.nu · 6 pts · 2y
Lol test
Beanie@programming.dev · 6 pts · 2y
hey, you did ask
mako@discuss.tchncs.de · 6 pts · 2y
Fix 3
MenacingPerson@lemm.ee · 5 pts · 2y
Update
Nomecks@lemmy.ca · 5 pts · 2y
"Debug"
victorz@lemmy.world · 5 pts · 2y
I wonder what the last commit message of my career will be.
nik9000@programming.dev · 4 pts · 2y
I wonder what my last commit at each job was. I'll bet it was boring. About 10% of my commit messages are genuinely interesting.
AA5B@lemmy.world · 1 pts · 2y
For some definition of interesting …. The quashed commit whose message is a Jira ticket number and title?
victorz@lemmy.world · 1 pts · 2y
This is what I hate about squashing. I love the fact that my crazy journey to a finished feature is there in the log for everyone to see, including myself lol. But squashing makes me feel empty when I write commit messages. Where's the fun... Just a straight line of perfectionism. Maybe someone has a crazy but cool idea that would be worth picking. 🍒
AA5B@lemmy.world · 1 pts · 2y
Maybe. I do more DevOps these days, so tend to have many small changes that can’t even be tested without checking them in and running in CI. I’d have hundreds of “fix unit tests” commits alone
victorz@lemmy.world · 1 pts · 2y
I've been thinking about that when talking to my DevOps colleagues, that there's gotta be a better way to test CI before committing. The whole change-commit-test dance would kill me if on a daily basis. So cumbersome.
nik9000@programming.dev · 1 pts · 2y
We squash. I'm not really interesting in your local journey to land the change. It's sometimes useful during review, but after that it's mostly the state of the main branch I care about. It's what I need to bisect anyway.
I don't like commits that are just references to issues. Copy the issue into the commit message so
git blametells you something useful. Unless it's just closing a simple big. Then the title and issue reference are plenty.Depends on the project I imagine.
nzeayn@lemmy.world · 4 pts · 2y
"it's possible i buried a self delete timebomb in one of our repos years ago. enjoy looking for it just incase assholes"
Mango@lemmy.world · 5 pts · 2y
" "
Thcdenton@lemmy.world · 5 pts · 2y
Fuck it I quitpkill@programming.dev · 5 pts · 2y
chore: ensure it's God's divine intellect
atx_aquarian@lemmy.world · 5 pts · 2y
haaaands
Shizu@lemmy.world · 5 pts · 2y
.
TunaCowboy@lemmy.world · 5 pts · 2y
sqpopcar2@programming.dev · 5 pts · 2y
"Merge pull request #8 from [branch name]"
Not the most exciting but hey, someone has to do it.
Socsa@sh.itjust.works · 2 pts · 2y
Merge commits 🙅
hash0772@sh.itjust.works · 5 pts · 2y
fixed another typo
tsonfeir@lemm.ee · 4 pts · 2y
“Again, Josh? Stop it.”
pete_the_cat@lemmy.world · 4 pts · 2y
Formatting fixes
marzhall@lemmy.world · 4 pts · 2y
"update doc to reflect reality still more"
moonleay@feddit.de · 4 pts · 2y
chore: replaced println() with proper logging utilI forgot to replace them water finishing debugging.
Ziglin@lemmy.world · 4 pts · 2y
Something along the lines of "I don't know what this does, I wrote this code two weeks ago"
shasta@lemm.ee · 4 pts · 2y
Change port to 8080 because stupid container locks down 80
Aux@lemmy.world · 4 pts · 2y
Fixed tests.
Tomato666@lemmy.sdf.org · 4 pts · 2y
Mod: Added delay to let switches settle
RandomVideos@programming.dev · 4 pts · 2y
Changed index.html
vrighter@discuss.tchncs.de · 4 pts · 2y
m
usually the commits at the end of the day when I haven't finished a task yet. It will be squashed and disappear eventually.
Grandwolf319@sh.itjust.works · 4 pts · 2y
Lint issue
pezhore@lemmy.ml · 4 pts · 2y
Reusing Terraform projects for the win.
levzzz@lemmy.world · 4 pts · 2y
Merge remote-tracking branch 'origin/master'
xmunk@sh.itjust.works · 2 pts · 2y
Ew - rebase all the things!
ZeffSyde@lemmy.world · 4 pts · 2y
This is pretty funny, but now I want to watermark all of my future work with outdated "Made With ..." Stickers.
"Made With Printshop Deluxe!" "Made With Microsoft Works!" "Sent From my Sidekick!"
theneverfox@pawb.social · 4 pts · 2y
Added zip code to the reseller portal when batch-creating transactions in
I try to start off descriptive, in case I want to diff a few changes back. After that, sometimes I write notes or general reflections on life in there... Until yesterday I thought no one was reading them
jdeath@lemm.ee · 4 pts · 2y
"cleanup" lol
explodIng_lIme@lemmy.world · 4 pts · 2y
Fixes
sudo_tee@lemmy.world · 3 pts · 2y
WIP
Bolleeer@programming.dev · 3 pts · 2y
Quack quack
bhamlin@lemmy.world · 3 pts · 2y
"Monte Carlo code changes. BLAME: notme"
pewgar_seemsimandroid@lemmy.blahaj.zone · 3 pts · 2y
feature suggestion but "hyprcursor"
AMDIsOurLord@lemmy.ml · 3 pts · 2y
fix this fucking gitignoregrimdeter@lemmy.ml · 3 pts · 2y
Update
Dragoninventor@lemmy.world · 3 pts · 2y
Lots of updates (it's a private repo and I'm bad at doing smaller individual commits!)
green_dot@le.fduck.net · 3 pts · 2y
latest cargo crates updated
SlapnutsGT@lemmy.world · 3 pts · 2y
Fixin’ thangz
halvar@lemm.ee · 3 pts · 2y
"Couldn't count all the stuff"
eskuero@lemmy.fromshado.ws · 3 pts · 2y
Beta 0.9.9.9.9.9
KairuByte@lemmy.dbzer0.com · 3 pts · 2y
My commits are a little too specific to post here, lmao. I likely put too much info into them, I’m still trying to get a good balance.
theneverfox@pawb.social · 2 pts · 2y
I think long messages are a good habit. Start with something readable in the history, past that who cares? Most people rarely read past the preview, and if they do they want details
I think it's great because it makes you reflect on what the goal was and what you did. I sometimes stop to make a quick change as I'm writing, or just collect my thoughts before mentally dismissing the task
bytheway@lemm.ee · 3 pts · 2y
“Some appropriate message.”
JPAKx4@lemmy.blahaj.zone · 3 pts · 2y
Uhh it's on a foss project so imma not dox myself lmao
Simyon@lemmy.world · 3 pts · 2y
"Add ability to load sources which are not a nginx file listing."
I try to be descriptive while keeping it short.
FrostyCaveman@lemm.ee · 3 pts · 2y
Minor text fixes
iAvicenna@lemmy.world · 3 pts · 2y
some fixes
andrew_bidlaw@sh.itjust.works · 3 pts · 2y
?
henfredemars@infosec.pub · 3 pts · 2y
Stuff
MinFapper@lemmy.world · 2 pts · 2y
WIP
rikudou@lemmings.world · 2 pts · 2y
Simplify link
kraynyan@discuss.tchncs.de · 2 pts · 2y
removed /32s in favour of /24s. Small layout changes.
Baizey@feddit.dk · 2 pts · 2y
Fix
simpliston@lemmy.world · 2 pts · 2y
Add links to navbar
Fijxu@programming.dev · 2 pts · 2y
Options for donation and contact linksNothing importantwebpack@ani.social · 2 pts · 2y
h
groet@feddit.de · 2 pts · 2y
1.1
TheHottub@lemmy.world · 2 pts · 2y
CPEUI-20102: It's working but still clean up to do.
I'll never get time to do that "clean up"
Kerb@discuss.tchncs.de · 2 pts · 2y
CatTrickery@lemmy.blahaj.zone · 2 pts · 2y
Fixed boolean logic and bump version.
wagesj45@kbin.run · 2 pts · 2y
Mubelotix@jlai.lu · 1 pts · 2y
Implement add headers
Der_Fossler@feddit.de · 1 pts · 2y
first release
Solemarc@lemmy.world · 1 pts · 2y
Add Exporters MVP
gjoel@programming.dev · 1 pts · 2y
changelog
nutt_goblin@lemmy.world · 1 pts · 2y
github-sync: local install (WIP, split and rebase)pheeef@lemmy.world · 1 pts · 2y
somebody renamed the interface but didn’t rename the monitoring interface 2
Naich@lemmings.world · 1 pts · 2y
Comment
xlash123@sh.itjust.works · 1 pts · 2y
I wrote a brief manifesto on my hatred of Python because some refactoring ended up having a comma at the end of a line, which screwed me over for about an hour until I happened to noticed it.
dalarist@programming.dev · 1 pts · 2y
"Added backoffs and logging for rate limiting"
Lmaydev@programming.dev · 1 pts · 2y
0x0@programming.dev · 1 pts · 2y
Oh i don't need to add bugs...
Come to think of it, i think i'll try emojis on my next commit message... just to test...
lars@lemmy.sdf.org · 1 pts · 2y
curl -s https://whatthecommit.com/index.txtandMoonsValue@lemmy.world · 1 pts · 2y
Submodule update
Socsa@sh.itjust.works · 1 pts · 2y
Rolling back demo commit
Skullgrid@lemmy.world · 1 pts · 2y
Offset controls that are grouped together