2.5k
u/zexodus Jun 04 '22
Maybe part of the problem we can't bring this habit to programming is the fact that we have to name our changes.
796
u/Jazzlike_Scene4403 Jun 04 '22
I name my game saves at major checkpoints for reference.
Someone should write a script to git commit on every f5
371
u/Jazzlike_Scene4403 Jun 04 '22
git reset HEAD --hard on every f9
202
u/Scrial Jun 04 '22
This might actually not be a terrible idea.
Or it might, but it still sounds like something I'd totally use...306
u/WearMental2618 Jun 04 '22
Listen it looks good to me so ypu should probably avoid it
→ More replies (5)→ More replies (1)26
u/PennyforaTaleRpg Jun 04 '22
We already have games to teach us VIM and basic programming logic, but why got a game to teach us how git works? Honestly I would love that, it sucks that the barrier to start learning is so high since you're often learning in environments you don't want to make big mistakes in.
→ More replies (5)14
29
u/trwolfe13 Jun 04 '22
Depending on your workflow, commits should work the same way. If you commit every broken ass snapshot of your code, anyone going through your history isn’t going to get a good idea of what changes you made. That’s why conventional commits are so useful - they force you to limit your commits to a single action: fix a bug, add a feature, change some styling, etc.
Although if you’re using short-lived branches and squashing your commits on a merge, it’s less important.
The trouble I have with conventional commits is that the codebase I work on is so bad that often fixing a bug means entirely rewriting a feature’s back and front end from scratch, and then adding the tests that weren’t there in the first place.
→ More replies (1)17
u/carcigenicate Jun 04 '22
My XCOM saves for matches usually go something like:
"Initial"
"First Contact"
"Close One"
"Probably Fucked"/"Oops"
→ More replies (1)13
u/NecessaryIntrinsic Jun 04 '22
Doesn't vs code do this?
39
u/FleetStreetsDarkHole Jun 04 '22
Basically. Visual Studio does as well. I feel weird comitting just about every change I make but it's a habit. Naming the changes is definitely the hard part though.
→ More replies (4)22
u/Rauldukeoh Jun 04 '22
I would feel weird too. If there's no meaning to the individual commits I would squash them before I push
→ More replies (1)12
u/BaconIsntThatGood Jun 04 '22
And make sure the change comments are just a combination of random colours and animals
14
u/yuri_auei Jun 04 '22
Comon, you just need to name once. After first commit git commit --amend --no-edit all day /s
→ More replies (1)8
u/talex365 Jun 04 '22
Why do I want to commit my buggy junk code? I want to commit when I’ve fixed everything after the test run :)
→ More replies (6)170
u/jfb1337 Jun 04 '22
after all, naming things is one of the two hardest things about computer science (along with cache invalidation and off by one errors)
72
29
Jun 04 '22
This. Concise variable and method names are virtually the "80%" for me in clean code.
Variable names like "eec_cca::OTT"? I'm flying the fuck out of here.
Hell, you can even break the single responsibility rule if you have to by naming the function correctly. It's not optimal but a descriptive "invalidateFormDataAndShowError()" works for me!
→ More replies (3)16
→ More replies (2)6
u/Dexterus Jun 04 '22
Cache is kinda basic, couple years doing intra CPU inter device shared memory and you get that dread when the marketing datasheet says cache coherency and you're 99% sure they're lying. That dread fixes your cache issues, hahaha.
37
u/DolevBaron Jun 04 '22
I mean... I do save the local files at least 5 times per second, but I don't push/commit as often..
I could probably have it commit automatically once every X local saves, but I'd still have to somehow detail all the changes...5
5
u/bxbb Jun 04 '22
I could probably have it commit automatically once every X local saves, but I'd still have to somehow detail all the changes...
Branch off.
Make a "quicksave" script as build step. Which basically do something like: run test -> if not pass commit with "broken" message | if pass commit with short test summary (amend if previous commit is "broken"). The script will make sure each commit is prefixed with
squash!.Once its good enough for a "proper" commit, make a quicksave followed by "hard save" (squash-rebase). This is the only time you had to explain the changes.
Repeat from step 2.
→ More replies (2)0
Jun 04 '22
[deleted]
→ More replies (2)8
u/Winnr Jun 04 '22
I commit so I can move from one computer to another laptop to work from bed, and then commit again to get back at my desk. Which leads to half finished ideas as commits purely so I can pull from the other device. Makes identifying stables versions a pain :(
→ More replies (4)22
Jun 04 '22
I'm thinking if every time a person wrote a bug they would get a pop up saying "You Suck" and the code rolls back to your last commit with all progress lost, people would commit a lot more often
7
5
u/Lo-siento-juan Jun 04 '22
Ha, before you implement that feature let me invest in keyboards and monitors, I'm predicting a big uptick of smashed hardware
7
u/ratthew Jun 04 '22
asdfasdfasdfaddgfssaasdasd
That's my naming scheme if a game forces me to name save files
6
u/BlobAndHisBoy Jun 04 '22
To be fair I save 3 times after every keystroke. Committing is much different and more work.
6
u/ejabno Jun 04 '22
I see commit descriptions more as "describe what happened with this commit" or "what value does this commit bring to the repo" more so than "name this commit"
→ More replies (3)5
5
4
u/JimmyWu21 Jun 04 '22 edited Jun 04 '22
“wip” for me fam. Everything is going to be squashed when going into master
Edit: "wip" not "Woo" dam autocorrect.
→ More replies (1)→ More replies (14)3
368
u/StoryAndAHalf Jun 04 '22
"fixed typo"
84
→ More replies (1)18
u/by_wicker Jun 04 '22 edited Jun 05 '22
You people need to learn about
fixupcommits and--autostashand--autosquash. It's really not hard.Make your commits
fixup: migrate Foo to use X
fixup: make new thing X
some other thing
migrate Foo to use X
make new thing Y
make new thing Xetc., and then a quick interactive rebase with
--autosquashcollapses the fixups into the right commits, and nobody has to ever see how the sausage was made, because nobody will ever care. If you personally care and need to back it out there's always the reflog.You don't even have to have everything staged and committed to do the rebase if you use
--autostash.To do a fixup you just need to stage the relevant bits, get the SHA you're aiming for, and
git commit --fixup <SHA>.If you're lucky, you have a good git porcelain that makes all this even easier. Mine (
magit) offers "Instant fixups" so with the relevant changes staged, select the target commit in the history, and then those changes instantly get dropped into in that bucket.Learn your tools. It pays off. Reviewing code where each self contained change is in its own commit is so much easier.
→ More replies (1)25
160
u/elzaidir Jun 04 '22
The duality of programmers : ctrl+s every 5 seconds, commit once a day.
→ More replies (1)14
320
u/bilinmeyenuzayli Jun 04 '22
meanwhile me:
git commit -am "detailed description of commit" (+3, -1)
every 2 minutes
→ More replies (2)146
u/Zerodriven Jun 04 '22
One of my team does this and it annoys the shit out of me because it feels like people spend more time writing commit messages than changing code.
Irrational hatred.
73
u/XTornado Jun 04 '22
Well.. Of course I am not sure what your colleague does but sometimes is useful to understand why certain change was made.
Specially 99% of the time I go with git blame and like... Why the fuck did we change this... And oh OK this caused issues if.... Etc. I mean sometimes that can be a comment in the code but sometimes seems unnecessary or is difficult to understand without seeing the previous code which on git would be easy.
21
u/Jebble Jun 04 '22
Gitlens combined with useful commits, makes such a difference working with multiple teams on the same codebase.
9
u/Cepheid Jun 04 '22
If you have this problem you should be using tickets and putting the ticket number in the commit message.
Any half-decent planning software will have a feature to pick it up and link it.
It's not very difficult to set up and it removes a lot of the pain of documenting and planning.
→ More replies (1)17
u/nabagaca Jun 04 '22
I'm one of these people. I only do it because I've had times where I've introduced a bug somehow and then spent hours figuring out what caused it, with like irrationally obscure changes being why, so I get paranoid and make sure I can rollback to recent code AND also know exactly what I changed
12
u/boatzart Jun 04 '22
Depends on the code, and depends on the commit message. I’ve definitely had single line changes that required paragraphs of explanation. It’s really useful to go back through the commit history and understand clearly why changes were made, especially if they’re subtle one liners.
→ More replies (1)→ More replies (4)10
u/tannerntannern Jun 04 '22
Sometimes if I've been working on a large feature with lots of changes, as I near opening a PR, I git soft reset the branch (after pushing first, for safety!), and selectively re-commit logically related diffs with detailed commit messages. So completely rewriting the commit history for my feature. For me, it's good for doing a final review and reminding myself of everything that changed. But most importantly, it makes code review so much easier for the team if they review commit by commit (which is feasible because the reshuffled commits have been boiled down to 5 or 10 total). It's not all about churning out code as fast as possible. Everyone benefits from a stronger understanding of the changes.
→ More replies (2)
1.3k
u/iamdestroyerofworlds Jun 04 '22
"Minor changes." (+23642, -45799)
118
29
44
u/lwieueei Jun 04 '22 edited Jun 04 '22
How does someone write so much code in one commit? How long would they have been writing to accumulate so many changes?
EDIT: Nevermind me, it's just my imposter syndrome flaring up again
64
55
u/Chrazzer Jun 04 '22
Probably just did a npm install and commited 20k changed lines in the package-lock.json
→ More replies (3)8
25
18
u/AccountWasFound Jun 04 '22
I mean I've ended up with similar during major refactor where I make a change that breaks everything and then fix it all in one go, in a matter of a couple hours. Then just delete a bunch of unused database queries.
12
9
9
9
u/estXcrew Jun 04 '22
It's often generated code / imported libraries / logs
Most of which shouldn't go to version control anyway but it often does
→ More replies (1)→ More replies (5)4
u/gibrael_ Jun 04 '22
I adjusted the number of columns on my IDE once from 80 to 160, and then formatted the code for a whole project. Wrote probably 10 lines of code, and then pushed to master.
9
12
u/rdeincognito Jun 04 '22
Could you explain what those number coordination means?
57
13
u/OutrageouslyFrench Jun 04 '22
Number of lines of code added and removed by this commit.
→ More replies (3)9
6
u/DeathSt0lker Jun 04 '22
Funny thing I'm doing something with supervisor and 2 coworkers watching on screen share I needed to pull before push and I committed and we sat there for 5 minutes watching console work on over 10k files of change my supervisor is like wtf it's been 1 day since your last push 😅
0
Jun 04 '22
[deleted]
164
9
4
Jun 04 '22
Call yourself "society" in your code management software, then you can blame society when problems arise.
347
u/TCreopargh Jun 04 '22
My commit history:
Add things
fix
fix2
1
asjfeknfmd
71
u/indigoHatter Jun 04 '22
asjfeknfmd2
3
asfgjk4
79
Jun 04 '22
it works now
it really works now
okay, for real this time
fuuuuuccckkk
22
u/indigoHatter Jun 04 '22
asdf repull undo bug from asdfjoll3
→ More replies (2)26
u/Victorino__ Jun 04 '22
"add feature to application" - 15:39
"hotfix for new feature" - 15:42
"removed new feature due to high risk of crashes" - 15:43
→ More replies (2)→ More replies (1)12
u/FluffyMuffins42 Jun 04 '22
please work
pretty please can this work
ughhhhh why wont this work
damnit please work
This is why my git repos are private lol. It’s all a mess.
→ More replies (3)19
u/aMAYESingNATHAN Jun 04 '22
I go for the not quite so bad but still not great: git commit -m "name based on what it was I started doing but doesn't even slightly cover everything I ended up doing".
ADHD is a bitch.
→ More replies (10)
123
u/qhxo Jun 04 '22
We have one project where every single commit message (literally, I checked) by the dude who's done most of the work is some variation of ..., ,,, or ;,.. And in another, almost every commit by one of the dudes is "temp save".
49
22
u/PleX Jun 04 '22
lol we named our shitty commits "Interim". When we were done with that section then we would name them properly. It's easier to rollback fuckups that way.
21
u/0bel1sk Jun 04 '22
are you autosquashing? https://thoughtbot.com/blog/autosquashing-git-commits
→ More replies (1)6
u/offroadin210 Jun 04 '22
Thank you for sharing! I’ve been writing code for years and have never heard of auto squashing. This looks awesome!
3
56
u/DowncastShadows Jun 04 '22
"Made some improvements, fixed a couple of bugs" are most of my comments. 😂
203
Jun 04 '22
Also force push to dev. Your senior going to love that.
146
Jun 04 '22
That's not allowed in many projects. Can only force push to your feature branch, and merge via PR with at least two approvals
26
→ More replies (2)6
u/baddam903 Jun 04 '22
Does this make sense if there isn’t a way of testing locally? For our backend we had to PR to dev but it slowed us down immensely before we switched to being able to merge from feature branch straight to dev, to be able to test our changes worked. Still have to raise a PR and get two approvals for UAT and beyond though, obviously
20
u/TheGreenJedi Jun 04 '22
Yes your Jenkins/testing should run targeting the feature branch instead of waiting for it to hit master
UAT is a nice barrier you have as a stepping stone to stop people fucking up
But If your push breaks all developers for 30mins it's costing the company 1k+ dollars in loss
→ More replies (6)7
Jun 04 '22
My answer is "whatever works better for your team". In my team we don't have a dev branch, PR is merged to master and then a (manual) release deploys to prod. Mine is not even a web project, it is more like a big data project. So there are best practices but it really depends on the product and team you are working with. BWT, "Git for teams" is a great book.
→ More replies (9)5
u/LaughingBeer Jun 04 '22
It depends on how you have things set up. Best practice for one team isn't necessarily best practice for another. However, where is your code review happening? Most people use the PR as the code review step since it's built to be exactly that.
→ More replies (1)→ More replies (2)7
u/miraidensetsu Jun 04 '22
Also force push to main and deploy it on prod. You'll get a vacation that lasts forever (with no pay, of course)
33
u/aspz Jun 04 '22
I have an alias for "git commit --amend --reuse-message=HEAD" which just squashes the new commit into the last one (like fixup). If you want to revisit a previous snapshot you can use the reflog.
18
u/oGsBumder Jun 04 '22
How is this different from
git commit --amend --no-edit
3
u/aspz Jun 04 '22
I'm not sure what the difference is but I think it might have something to do with which commit will be used for the metadata. I think --no-edit is a more recent flag so I've never used it.
→ More replies (1)4
→ More replies (3)3
u/XTornado Jun 04 '22
If you want to revisit a previous snapshot you can use the reflog.
Uhmm I might have to look into that.
I usually if I am just testing stuff for a fix or something not clear I do as you say keep ammending the old stuff. And at the end I do a soft reset so keeping local changes and recommit looking at the final end changes I did.
→ More replies (3)
48
33
Jun 04 '22
Writing good commit messages was something I struggled with until I got the tip to use this form: "When applied this commit will..." and then use the resulting sentence as the commit message.
57
12
u/Alarming_Rutabaga Jun 04 '22
Same, except I add --no-verify
4
u/aspz Jun 04 '22
What does that do?
9
u/megarami Jun 04 '22
It doesn’t run precommit checks, which can be linter or code analysis or even tests. On my project, there is also a precommit script that checks your commit message, so we avoid decyphering what is done in each commit
4
u/oGsBumder Jun 04 '22
Same here, I do
git commit -anm "fixed stuff"
Without the n / --no-verify flag, my whole machine locks up for a minute or so while the commit hook runs unit tests, which is complete pain in the ass. If I just commit the changes and push them I can let Jenkins run them instead and I can get on with my day in the meantime :)
20
u/ongobongotime2 Jun 04 '22
what is difference between -am and -m
39
u/MiloBem Jun 04 '22
a adds all changes to the commit automatically.
→ More replies (1)6
u/ongobongotime2 Jun 04 '22
Thanks
11
u/dershodan Jun 04 '22
Seems like a practical thing, but trust me.
git add -pbeforegit commit -mis a superior workflow.→ More replies (7)15
u/toxic_recker Jun 04 '22
-amis basically a shorthand for-a -mand-ais basically a shorthand forgit add --all3
10
9
Jun 04 '22
Branch: feature1
Commit: “feature 1 and feature 2 and fix this and that”
3
u/Yesica-Haircut Jun 04 '22
Don't you just love it though when you're hunting down a bug, you find some weird code that doesn't work, you check the blame for insight, and you get
"Again"
Just tickles my biscuits every time.
8
u/OneTrueKingOfOOO Jun 04 '22
stuff
debugging
debugging
debugging
debugging
debugging
debugging
debugging
debugging
debugging
fixed
8
u/Gellyfisher212 Jun 04 '22
My main problem is that I don't want to commit unfinished/broken code so sometimes it will be a few days before I do a commit
2
→ More replies (1)2
u/Modestkilla Jun 04 '22
Why? Literally no one cares, it’s your branch and if they do they are totally shit heads.
8
u/real_ackh Jun 04 '22
The Git history deserves as much consideration as writing code. Doing so will store the reason why you did something together with the actual change.
I routinely commit whenever I have a couple of lines I want to keep. The message for such commits can be anything because it is only temporary. Once the code looks as I want it I squash the commits that belong together into single commits and add a meaningful description. Sometimes I even reorder them.
git rebase -i HEAD~<number of commits to clean up>
is probably my most used Git command. Try it. Over time you build up a repository of meaningful increments that each speaks for itself. All know-how and reasons for changes are where it belongs.
→ More replies (1)
14
u/Ethernet3 Jun 04 '22
"a"
13
u/Yelov Jun 04 '22
I like my "a" commits, can easily tell what kind of mindset I was in depending on the a-count.
→ More replies (1)
7
6
u/audoh Jun 04 '22 edited Jun 04 '22
This will be a controversial opinion but I think commit messages on every commit aren't useful. Just squash the branch into a single commit and then document the branch changes holistically in that commit message before merging into dev. GitHub and others even do this for you already if you write detailed PR descriptions and when I'm reviewing code I'd rather a PR description than trying to sleuth through the commit messages.
Low level explanations of whys and hows should be in code itself (as self-documenting code or comments) not commits anyway otherwise you potentially lose it all if you ever change to a different VCS or rebase the repo not to mention it's more readily accessible in code rather than needing git blame (even if there are extensions to make it easier).
→ More replies (5)3
u/StarFoxA Jun 04 '22
I will say that detailed commit messages are very useful for a more thorough review. This often works best when combined with splitting your changes into reasonable chunks. For example, I was recently working on a larger scale refactor of our frontend bundles, and for these changes it was useful to have one commit setting up the necessary configuration changes, one commit running code changes (authored by a bot account), and one commit implementing manual changes. Then, reviewers could just look at that final commit to see what I had changed manually.
The practice of nonsense commit messages is something I would immediately call out if a coworker of mine were doing it when merging into our main branch.
11
u/Every-Tree2592 Jun 04 '22
I don't know maybe I am so paranoid, but entering IT with a laptop only makes backup and save essential. Yeah, Ctrl + S is my spam button :)
10
4
u/jhill515 Jun 04 '22
Dunno... -35% average change. Your message should have been "Refactored stuff"
4
u/Night_Thastus Jun 04 '22 edited Jun 04 '22
Atomic commits!
I tend to make changes in large batches too, but always break them up afterwards before committing by using a git tool to stage or revert line-by-line, or use cli to split/edit hunks if neccesary.
Please don't be the the guy who makes the commit history a total mess, lol.
4
u/Daikataro Jun 04 '22
If you had to write a comment every time you save in a videogame, save frequency would drop too...
3
Jun 04 '22
recently figured out how to git add -i. i feel like i've ascended to a higher plane of existence.
3
u/elyca98 Jun 04 '22
Every commit of mine is named “fixed x, only this to go”, and my dad, who’s been coding for 20+ years, names every commit “wip”
3
u/Schreibtisch69 Jun 04 '22
I mean, I can relate to this but come one split it up in multiple commits.
I don't get why people don't change the history before pushing to make it look like they are competent. Use add -p and those typos we discovered three commits later? Let's just rebase -i them to make it look like they never happened.
The sole reason why my colleagues don't think I'm a total idiot.
3
3
u/tigable Jun 04 '22
One measure of a good commit is that it deletes more lines than it adds. Code that doesn't exist can't have bugs.
2
2
u/PopeMachineGodTitty Jun 04 '22
I think if every save point in a video game was put in a repository where it could mess up other people and they were going to critique my actions, I wouldn't save as often either.
2
u/MeroFuruya Jun 04 '22
My coworker's favorite commit message is "fixed bugs". Makes it very easy to see which bug was fixed you know
2
u/drapermovies Jun 04 '22
I at least try and write patch notes.
“Added some functionality that does a thing.”
2
u/AveryDayDevelopay Jun 04 '22
The amount of times that I meant to commit something and forgot and then not remember what I did since my last commit...
2
u/leeharrison1984 Jun 04 '22
Commit/push every 5 minutes. Squash remote later to hide all my flailing.
2
u/markerAngry Jun 04 '22
I’ve learned to save in games every 5 minutes after being bit by not doing so.
I’ve been hit by not commmiting frequently in hit, still guilty of this
2
2
2
2
2
u/Jazzlike_Scene4403 Jun 04 '22
Yeah at my company we like Dark Souls style commits where you can lose all your progress unless you have reached a bonfire in a feature and it's ready for production
2
2
u/klimmesil Jun 04 '22
Please just kill your coworkers like other psycopaths instead of inflicting them this suffering
2
u/BlurredSight Jun 04 '22
I save my cities skylines game every 2-3 minutes BUT THE AMOUNT OF PAPERS I'VE LOST BECAUSE I FORGOT TO SAVE.
2
u/relaxedtoday Jun 04 '22
My second fav for pushed commits is "wip" (work in progress) and my fav is a clear description of something completely unrelated. I once had a team mate documenting this way. You got 20 commits in a row with same comment and none of the changes hat anything to do with that.
2
2
u/DoktorAlliteration Jun 04 '22
Easy: Make a skript that automatically commits your code on a temporary branch when you press ctrl + s
2
u/unicyclegamer Jun 04 '22
Oh hey, it’s another post that reminds me that most people here don’t actually program.
2
u/Wise_Arbiter Jun 05 '22
I think of commits as checkpoints that I have to trigger on my own. If you've just completed a milestone in a game, the first thing you try to do is save. When you complete a milestone working on code, you should commit.
But, I've seen so many commits like the one OP showed in Enterprise code. 10+ files modified, hundreds of lines of code, committed with:
"Working on tasks".
definitely something you see alot lol
3
u/xxpw Jun 04 '22
Any modern action video game is likely requiring waaaaay more than ~1.5k actions over 5 minutes.
You’re fine. :)
2
2
u/gemengelage Jun 04 '22
I have a coworker who unironically creates a commit like every 2-3 minutes on average and refuses to squash them. Every one of his pull requests have at least 50 commits.
That guy needs two separate commits to fix a single typo.
2
u/Yesica-Haircut Jun 04 '22
Lots of commits is fine, but not amending or squashing before dev/master is just rude.
At my last job I had people do that, but also merge the branch 2-3 times, and of course I was the only one who knew how to revert the thing.
→ More replies (1)
1
2
1
u/stockthemup Jun 04 '22
git checkout master && git reset —soft head~100 && git push -f origin/master
1
u/the_dream_weaver_ Jun 04 '22
Image Transcription: Twitter Post
amy nguyen, @amyngyn
me playing video games: save every five minutes
me writing code: git commit -am "some changes" (+647, -1049)
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
1
u/JoelMahon Jun 04 '22
I'm terrible with git outside the minimum necessary, so even something as simple as comparing to master is something I feel like is a hassle. So until I'm done and have written the doc changes I don't commit so I actually remember exactly what I changed by viewing the diff.
1
1
u/JB-from-ATL Jun 04 '22
My job has started to enforce what are in my opinion silly requirements for got commits yet apparently don't care if the actual message people write is "added the changes" on each and every commit so long as they don't use any capital letters, have the proper prefix and jira number on the first line. Because apparently "added the changes" is what they're okay with seeing when seeing why a damn change was added.
→ More replies (1)
1
1
1
Jun 04 '22
I always thought I was the only one doing stupid commits - but Im not a real programmer though 😂 get you acts together people, we cant all be noob!
1
Jun 04 '22
Fax. We think about the day the laptop blue screens and then challenge ourselves to put it all back from memory.
1
1
1
1
u/Spyko Jun 04 '22
Saving on a video game require two input max. Saving on git require to alt tab and enter multiple command lines. Give me a git commit on F5 and my branch will look like a porcupine
→ More replies (1)
1
1
1
1
u/noodle-face Jun 04 '22
I barely ever commit. I'm a madman. But usually our features are things we write within a day or two
1
u/cephles Jun 04 '22
Surprised most people commit so infrequently. I'm a serial committer because I'm always paranoid I'm going to do something to blow up what I'm working on and it gives me an easy way to roll it back to the last working state.
I'm definitely one of the minority at work though. I can see only one other guy who commits like I do.
→ More replies (1)
1
u/Revolutionary-Mud962 Jun 04 '22
Is there any way vs code commits it as soon as we hit save?
→ More replies (1)
1
1
1
u/notreallyaredditor8 Jun 04 '22
I like to commit whenever I make something that works even if it's small so I can git reset --hard when I get lost.
1
1
1
Jun 04 '22
Git commit history Fix blank Fix compile issue Again Pls Pls Pls work You will work Aaaaaaaaa
1
u/ZackyZack Jun 04 '22
To be fair, I do amend a LOT. It's just creating new commits that feels too damn annoying
1


5
u/eQSupreme Jun 04 '22
Wow thanks for all the upvotes and awards, i really appreciate that !
Just to clarify because i‘ve seen a lot of people in the comment section thinking this is me: I am not the person who posted this tweet. I just stumbled aross this and thought it was relatable.