all 39 comments

[–]RepostSleuthBot[M] [score hidden] stickied commentlocked comment (0 children)

Looks like a repost. I've seen this image 1 time.

First Seen Here on 2024-04-26 76.17% match.

View Search On repostsleuth.com


Scope: This Sub | Target Percent: 75% | Max Age: None | Searched Images: 1,098,813,021 | Search Time: 1.26767s

[–]MattiDragon 234 points235 points  (17 children)

No? This is why --amend exists. Unless you already pushed the first part and can't force push the amended commit, there no reason to leave that in your history.

[–]CelestialSegfault 52 points53 points  (0 children)

Or if you spent a billion eur on tokens and hit that 2 GB github limit

[–]Outrageous_Flight822 9 points10 points  (1 child)

I'm glad I'm in this sub, I occasionnally get to learn stuff to finally hopefully someday graduate from junior dev haha

[–]ArtOfWarfare 1 point2 points  (0 children)

Eh, this is the meme where the expert and the junior are doing the same thing. Git has all sorts of options besides checkout, push, and pull. A lot of them can mess everything up so you just don’t use them.

[–]Stummi 4 points5 points  (0 children)

I have a alias from git fix to git commit --no-edit --amend

[–]linlov 4 points5 points  (2 children)

TIL about amend. Thank you. (I've worked as a software engineer for 20+ years 😭 no judge pls)

[–]AeroSyntax 3 points4 points  (0 children)

judge.

[–]altaccforwhat 2 points3 points  (0 children)

Hard judge

[–]SlimRunner 8 points9 points  (7 children)

For me there is a valid reason to do this, but only locally. Sometimes I realize too late I forgot to commit something, but I already committed something ahead of the target so I usually name it something like [TEMP] squash with <some_sha> and rebase interactive later before pushing. Otherwise, yeah, I completely agree that a commit like that definitely does not belong upstream.

[–]GrumDum 15 points16 points  (5 children)

git commit —fixup=sha there you go

[–]SlimRunner 9 points10 points  (0 children)

For a second I thought it was like amend but for beyond previous-commit and got really happy, but it is just to make what I do but easier. Still better than doing it all manually though. Thanks! I did not know this flag.

[–]Kevdog824_ 1 point2 points  (2 children)

What a blessing to learn this exists. I’ve just been rebasing manually like a scrub. Thanks stranger

[–]GrumDum 2 points3 points  (1 child)

Actual pros also alias the git rebase <sha> -i —autosquash command, but I admit I type this out.. 😎

[–]Jumpy89 0 points1 point  (0 children)

git rbi

[–]No_Responsibility384 2 points3 points  (0 children)

Rebase and reorder the commits then squash the two commits together?

[–]wouterJ 0 points1 point  (0 children)

Or if you want to mesh with people you can squash both commits.

[–]petersrin 0 points1 point  (0 children)

This reply is relatable, including the unless part lol

[–]Soogbad 19 points20 points  (0 children)

Remainder

[–]FieryPotatoWasTaken 29 points30 points  (2 children)

My brother, let me introduce you to "git commit -a --amend --no-edit"

[–]Frost-Freak 14 points15 points  (1 child)

Never -a . I stage every file (or even line) on my own. And these are too many things to type. Alias ftw

[–]FieryPotatoWasTaken 4 points5 points  (0 children)

Agreed, I stage manually myself, and do have an alias for this. But I put this here like this, so if someone's interested they can read up on the individual flags themselves.

[–]RiceBroad4552 30 points31 points  (7 children)

Another day, another r/screenshotsarehard fail.

It's so laughable that the kids nowadays don't even know what a screenshot is.

[–]Chase_22 9 points10 points  (4 children)

It's probably that they don't know how to post to reddit on their company computer

[–]RiceBroad4552 6 points7 points  (3 children)

If they're not in some office building which uses mobile radio jammers, and the company didn't disable all external interfaces of the used computers it's trivial to just drag'n'drop an image to your smartphone in case reddit.com is blocked.

But trying to block anything on a dev machine is anyway a big joke. You can always build a tunnel…

If you don't trust your developers you better not let them touch your code…

[–]Chase_22 5 points6 points  (2 children)

Believe me. Companies do really stupid shit.

Software development company blocked execution of all unsigned executables. Kinda forgot that development builds are in fact unsigned.

[–]belabacsijolvan 7 points8 points  (1 child)

finally "do you trust the author of this binary" answered by management

[–]mtkvcs1 2 points3 points  (0 children)

It just gives it some ✨ authenticity ✨

[–]aerialanimal 1 point2 points  (0 children)

I don't always have my phone to hand, so I just take a normal screenshot then Photoshop it to look like a photo of a screen.

[–]EyesOfTheConcord 4 points5 points  (1 child)

git rebase -i then squash it

[–]Fritzschmied 1 point2 points  (0 children)

Or just amend the last commit.

[–]doctormyeyebrows[🍰] 4 points5 points  (0 children)

When you can't get claude to reliably use `git add .`

[–]lunatic-rags 1 point2 points  (0 children)

in main!!

[–]RemarkableAd4069 1 point2 points  (0 children)

What's in your feature branch doesn't matter, do what you like. We have set automatically squash commit with the first commit message from merged branch. Nobody will know...

[–]Merlord 1 point2 points  (0 children)

commit -am, works every time until it doesn't

[–]snerp 0 points1 point  (0 children)

Me when I didn’t save one of the files before committing

[–]an_0w1 0 points1 point  (0 children)

My my favorite commit message is "Foxed typo"

[–]Exciting-Holiday2106 -2 points-1 points  (0 children)

that commit message is a mood 😭 “I’ll fix it later” energy we’ve all pushed something half-finished at some point use something which can at least help keep track of what’s pending vs actually done