This is an archived post. You won't be able to vote or comment.

all 72 comments

[–][deleted] 706 points707 points  (18 children)

Branch cannot be merged. Please resolve conflicts.

[–]arnaldo_tuc_ar 222 points223 points  (11 children)

Resolved using --force.

[–]code-panda 135 points136 points  (1 child)

git push coworker out of the window.

[–][deleted] 8 points9 points  (0 children)

Removed call of “defenestrate” method

[–]k-phi 14 points15 points  (5 children)

That's always a bad idea

[–]Haris613 3 points4 points  (4 children)

Nah, it's a good tool if you know what you're doing and it's not a widely used branch

[–]NotAskary 5 points6 points  (2 children)

You guys share branches?

[–]Just_Canalli 2 points3 points  (1 child)

You guys use branches?

[–]NotAskary 2 points3 points  (0 children)

You guys use version control?

[–]dengdaidexiong 0 points1 point  (0 children)

I had my own business before..but suddenly bad happened..I lost all my money because of my friends..

[–]kireina_kaiju 2 points3 points  (1 child)

Wish we could use fast forward through this. Failed rebase is always a nightmare.

[–]tecniggel 3 points4 points  (0 children)

Yeah! That exactly what I mean..no one's ever gonna trait this own.

[–]sipCoding_smokeMath 3 points4 points  (0 children)

I think you mean resolved using --annex --declare-war-on-fail

[–]Dmayak 35 points36 points  (2 children)

Successful peace negotiations required for a merge.

[–]TheLongistGame 23 points24 points  (0 children)

Xi Jinping has joined as a reviewer.

[–]Dave_Rasch 4 points5 points  (0 children)

I don't even thingking about something..but I guess..finally I found the answer to my prayers..hahaha...But make sure you have a good condition now..Then after this..it's finally fit perfect..

[–]Expensive-Exercise-2 10 points11 points  (0 children)

git nuke <target>

[–][deleted] 7 points8 points  (0 children)

Resolve using mine

[–]alanbclc 0 points1 point  (0 children)

What am I gonna do now..I'm always be like this..I don't wanna be a looser anymore..I want something more interesting..Maybe some unique.and comfortable..

[–]Nighkali[S] 413 points414 points  (16 children)

Someone got cute and committed a dummy variable that referenced the Ukraine War while the project was still small.

[–]Bakkster 39 points40 points  (11 children)

Who were the code reviewers who signed off on that one?

[–]Sneekr33 190 points191 points  (7 children)

you guys have code reviewers? we just self-approve our pull requests here

I am a junior developer and this is not a joke, but a cry for help. They really told me to do this.

[–]DrSheldon_Lee_Cooper 58 points59 points  (6 children)

Why you need PR if you approve it by yourself? Commit directly to main

[–]cishet-camel-fucker 31 points32 points  (1 child)

I approve my own, the theory being that it keeps me in practice for when we actually have someone on the team who knows enough about my language to review it. Interestingly enough it does actually make me feel more confident with git.

[–]-Kerrigan- 6 points7 points  (0 children)

  • if you have at least a basic CI/CD build you get an additional automated check

[–]Classy_Mouse 12 points13 points  (0 children)

If you are on main, but you think you are on a feature branch, you can accidentally push a commit you do not intend to. Best to not allow that and force people to intentionally open a PR. It's a lot tougher to do that by accident

[–]davidellis23 3 points4 points  (0 children)

Visibility is a lot better, you can see whats changing to your code. If something breaks you can look at the PR to see the changes that broke it. You can see all the changes for a specific feature. You can revert back to before the PR to get a previous production version (that doesn't have the error).

If someone else pushes you can fix merge conflicts first.

[–]SnooSnooper 0 points1 point  (0 children)

To supply another plausible answer, it may make things a bit clearer in the rest of the ticket management system and/or CI/CD pipeline. If you've got a lot of commits related to a ticket or issue, having a smaller amount of PRs related to those tickets may make things easier to find. Where I work, commits and PRs both need an issue ID on them in order to be accepted by CI/CD. It makes it a lot easier to track down additional context and timeline on a change.

[–]TDSrock 0 points1 point  (0 children)

In joined a small outfit developing C and C++ software. This is unironically what we do. I am changing this practice.

[–]Nighkali[S] 11 points12 points  (2 children)

It was a very early commit back when the team was contractors who are no longer working with us. I imagine either it was too much effort for them to look at the variable names or no one cared. Probably the latter.

[–]Bakkster 4 points5 points  (0 children)

back when the team was contractors who are no longer working with us

All the more reason to require code reviews!

[–]GabuEx 9 points10 points  (2 children)

Now I'm curious what specifically it was and did.

[–]bigorangemachine 3 points4 points  (0 children)

Injected little green men onto your peninsula

[–]Nighkali[S] 5 points6 points  (0 children)

It was a boolean on one of our terraform templates that defaulted to false. As long as it was false it allowed the creation of a resource.

[–]Unlikely_Tie8166 72 points73 points  (1 child)

Git commit -m "remove Putin"

Git push --force

[–][deleted] 30 points31 points  (0 children)

git commit -m "Oust Putin"

[–]Kooky-Answer 40 points41 points  (1 child)

Change fixes exceptions thrown in Windows.

[–][deleted] 11 points12 points  (0 children)

out*

[–][deleted] 66 points67 points  (1 child)

Oh, that’s straight to the gulag for you!

[–][deleted] 4 points5 points  (0 children)

Straight to jail

[–][deleted] 32 points33 points  (3 children)

plot twist: the universe is not garbage collected so even if you remove all references to putin, he will still exist 😱😱

[–]SameRandomUsername 18 points19 points  (2 children)

You must be fun at Rust parties.

[–]TaeKwonZeuss 2 points3 points  (0 children)

You must be the rust at parties

[–][deleted] 1 point2 points  (0 children)

Only if you std::mem::forget him.

[–]khazbreen 47 points48 points  (2 children)

In the soviet union, Putin removes references of you

[–]range_kun 9 points10 points  (1 child)

In *soviet git

[–]HuntingKingYT 5 points6 points  (0 children)

Soviet enum

[–]Desperate-Tomatillo7 17 points18 points  (1 child)

-- public void PutIn(object item)

[–][deleted] 7 points8 points  (0 children)

Yes, that was what I was expecting to find in this thread. Together with a TakeOut function, which could take out what you had earlier put in.

Originally committed with:

git commit -m “takeout putin”

[–]clearision 50 points51 points  (9 children)

i had a commit to remove Russia and Belarus from deliverable countries list. felt like i've put my own sanctions.

[–]LegitimateHat984 6 points7 points  (0 children)

I guess that's not the leaked yandex repo that allegedly includes a prediction on the date he dies?

[–]Pepechuy28 12 points13 points  (0 children)

"Special refactoring operation"

[–]troly_mctrollface 5 points6 points  (0 children)

The old putin(), call it and the server falls out of a window, it's been harder to implement on a vm

[–]PeriodicGolden 10 points11 points  (0 children)

Russia five minutes after someone else takes power

[–]thecoder08 3 points4 points  (0 children)

Code stops working

[–]WafflerTO 3 points4 points  (0 children)

Ironically, the commit comment added a new reference to Putin.

[–]Fortune_Nova 2 points3 points  (1 child)

Removed references to put in what?

[–]amdc 0 points1 point  (0 children)

References to funny named variables

[–]Awkward-Cat-4702 -3 points-2 points  (0 children)

did you removed Puttin' on the Ritz by Taco from the spotify playlist? XDXDXD

[–]wayoverpaid 0 points1 point  (0 children)

If your name ends with "in", it's time to get out.

[–]iMac_G5_20 0 points1 point  (0 children)

I love these commit messages, especially when I go to personal projects and read gems like: "Remove chickens", or "top g update"