Git gud

Git gud

133 comments · 95% upvoted · source · other discussions

comments

betterdaysaheadamigo

Ship it.

NoLifeGamer2 [OP]

Yep. My shift is over for the weekend anyway.

TheMagicSkolBus

Nooooo, I’m on call!

alaskanloops

At the end of the day Friday so you don't have to deal with any prod support for a couple days.

LiveFastDieFast

Also make sure it’s right before a branch for release. And it’s best if you’re on vacation the whole next week, and your change is for legacy libraries that are used everywhere

midwestcsstudent

🚢

[deleted]

Accept: mine

AntiSocial_Vigilante

git: 'gud' is not a git command. See 'git --help'.

The most similar command is add

[deleted]

I feel like you actually ran this to see what it would say the most similar command was lol.

AntiSocial_Vigilante

This is literally copy pasted from my terminal

narayans

You can make it an alias for something and show it off in your next demo nonchalantly

Spaceduck413

Interesting. I get: The most similar command is gui

AntiSocial_Vigilante
Spaceduck413

Odd indeed.

To be clear, not doubting you, just found it weird. Maybe because I don't have anything checked out.

[deleted]

Gonna need git --version from you two haha.

AntiSocial_Vigilante

Here. I'm running git on termux though. And since it does not actually support gui as a command either so that's probably the reason.

Retbull

Git mobile?

Spaceduck413

SSH to my desktop box.

Is.. is git mobile a thing? Asking for a friend.

mrlacpeanut

I guess there are Git clients on mobile e.g. Working Copy

The_exceptionist01

You can use termux

Kenielf
InkTide

I hope I don't find out in a few months this joke comment thread in response to a meme stumbled onto some crippling security vulnerability of git that shakes the software development world.

eriedaberrie
[deleted]

If the machine you run it on has a DE (or git4windows), it'll offer you gui. If it's a terminal only install, seems it will default to add.

That would be the logical answer anyways.

EDIT: Non-exhausted thinking would say that git checks for if a GUI is installed, then offers it if so.

Spaceduck413

Maybe... I am running plasma.

What's hilarious to me is git gui is a broken command, at least on my system

Chariot

I'm on ubuntu 20.04 and it recommends add for me.

PunkyMunky64

exactly lol

Golden_Kumquat
Yobleck
jekdasnek2624
sophacles

Just put an executable file (binary or script is fine) called git-gud somewhere in $PATH. Now git gud is a valid command.

I have mine take an extra argument to launch whatever game im currently sucking at.

AllHailTheSheep

I have aliases bound to git gud and git rekk, the first fetches/pulls updates and the other does a hard reset

Dreit
drLoveF

Aliases, my friend

[deleted]

Fixed 7 readme typos

YellowBunnyReddit

can push asap @EpicGames/developers

supermario182

Fuck that was hilarious

NotGlonk

Added 8 typos

sh0rtwave

Do you claim to NOT know why this happened?

NoLifeGamer2 [OP]

IDK not my problem I'm resigning later anyway

stilldebugging

Wow, that’s an extreme reaction to a bad git merge. Or… is it?

alaskanloops

I've copied code from my IDE to a text editor, threw away my branch, pulled Master, create new branch, then copy code line by line from text editor back to IDE instead of dealing with a gnarly merge conflict before. I call this the "Nuclear Option".

[deleted]

[deleted]

LiamMeron

God, I hate this shit. Every feature I work on has me touching nearly the entire codebase. How did I inherit the maintenance of this ball of spaghetti program and how do I un-inherit this?

Xanvial

That's just rebase with extra steps

i_sigh_less

That's more or less the same as

git merge -s ours

isn't it?

normalmighty

It is, but a shocking number of people don't know any git features beyond the basics you use every day.

jjbugman2468

Yup. Been there, done that. I’d been at the merge conflict for hours and finally decided to do this. Done in less than 30 mins.

load 1 more replies →

casce

I can definitely see situations where a bad merge would justify quitting your job.

stilldebugging

Yeah, me too. Except that if I changed jobs I’d start with nothing when I ctrl-r. Existential crisis.

dagbrown

Wasn't there an enormous outage just last week caused by, essentially, a bad git merge?

_GCastilho_

*Vsauce music starts*

[deleted]

git push master --force and start your weekend.

[deleted]

Guys why did prod just go down?

EldritchWeeb

It's just flakey unit tests, rerun it a couple times and it'll be fine I think.

By the way, I'm charging an hour for this consultation.

[deleted]

And a 3 day vacation, because burnt out

load 1 more replies →

cybermage

License to kill -9

diffyqgirl

License to kill: MIT Opensource License

lordlionhunter

Good, the permissive one

Gogo202

Jesus, why is everything on the subreddit so cringe now?

vale_fallacia

Because you are taking things too seriously on a joke subreddit and have inadvertently lost your sense of humour.

rynemac357

Coz for all of your files Owner and group members have no access but everyone else have read write and execute access ?

highphiv3

I recommend copying your code to Google Drive, then deleting all git repos, and then git initing again. Or just stick with Google Drive, the ultimate VCS. I've been using it for years and have never once gotten a merge error.

us-west-1

Came here to say this. If you don't use git it's literally impossible to have a merge conflict

PrettyDecentSort

smartmanpointingathead.bmp

vale_fallacia

Nope, no merge errors here! /s

❯ ls
archive  backup21  backup4  backupb  server.js       server.js.backup   server.js.backup-10-10-2020.txt  server.js.bak
backup   backup3   backupa  old      server.js.back  server.js.backup1  server.js.backup13
harmenator

[deleted 26-6-2023]

Moving is normal. There's no point in sticking around in a place that's getting worse all the time. I went to Squabbles.io. I hope you have a good time wherever you end up!

[deleted]

[removed]

biffbobfred

it's an HOMAGE to Stack Overflow... get it right

PrettyDecentSort

this is not the greatest code in the world... it's just a tribute

[deleted]

[removed]

ReactsWithWords

My name is Bonding. Network Bonding.

load 1 more replies →

jembytrevize1234

I see you too have both squash merges and merge commits happening on your main branch

saramaganta

Almost spit my drink

Last_Aeon

sigh

git checkout main

git pull

git checkout <branch>

git rebase main

PrettyDecentSort

if rebasing doesn't work, try freebasing instead.

XhackerGamer

silksong reference

Ill1lllII

I see you've met the Portugese development team I oversaw once.

Jack_12221
lightwhite

You are like Bad Luck Bryan. You pull Kelsey Hightowers nocode repo, and you still get merge conflicts.

Sorcerous_Tiefling

If 0 lines are added or modified then how can you have merge conflicts? There's nothing to conflict with... Jokes are only funny if they actually make sense.

[deleted]

I'll refer to this comment whenever I feel like I'm taking life too seriously.

Sorcerous_Tiefling

Ok idc dude, im just saying the joke doesnt actually make sense...

Is this a place where we make actual jokes about programming? Or just go 'hur durr git hard' and collect easy upvotes?

[deleted]

Absurd humor (or surreal comedy) is the type of humor that revolves around illogical situations, behaviors, and absurd characters that make you laugh simply because they are ridiculous and unexpected.

Just a different approach on getting laughs, my man.

[deleted]

He's using his own old humor package, I think he forgot to update to [email protected]

WhatHappened2WinWin

To answer your question, it was a burst of cosmic rays. Duh bro. Use your imagination!

trunkytheelephant

Just gotta rebase, prolly.

Physical-Layer

I see that someone does not truly master git.

Nightpain9

Fucked up your calls.

thavi

Ahh it's the weekend and you're pressing my trauma buttons

hdmp3converter

ah yes, undergraduate years flashing before my eyes

CaitaXD

What not adding a . gitignore does to a repository

jonnyclueless

As long as you're under 10, you're good to push to production. That's the rule of thumb right?

Igorechek06

------rwx

bugnuggie

Or they call me a generous admin lolll

load 25 more replies →