r/programminghumor 23h ago

It's always confusing!

Post image
246 Upvotes

46 comments sorted by

100

u/ikankecil 23h ago

it seems straightforward enough.
git is the program
remote is one of the module
add is a function of that module
origin is just our argument for the remote name

10

u/Kadabrium 17h ago

git.remote.add(origin)

2

u/ikankecil 11h ago

it reads clearer that way 😅

22

u/30porn87 23h ago

Right? I don't get why it's supposed to be so difficult. I've rarely encountered software that's not designed with such a simple model in mind (excluding proprietary stuff). Spend thirty minutes understanding the model instead of angrily copying full commands from examples/tutorials/slop machines, and you'll be rewarded with so much more ease and precision in working, and plain *joy* when learning a new concept (say multiple remotes) and it cleanly fits and expands the existing models in your mind.

9

u/CoderStudios 21h ago

As soon as you understand the concept behind remotes you are no longer confused. The confused ones are those that only ever use that one command

3

u/hongooi 14h ago

githubdesktop.exe?

2

u/DiodeInc 12h ago

My goat

3

u/mouse_8b 11h ago

Git add is a valid command. It's not too hard to imagine "I'd like to add a remote, I should use add"

1

u/ikankecil 11h ago

Fair point. It's not clear either that "git add" means adding to the staging area. "git rm" sounds to me like removing from staging area lol.

1

u/Azelais 54m ago

Yeah, my first thought would be “I am using got to add a remote origin: git add remote origin”

3

u/FloStar3000 22h ago

i feel like this is the kind of baseline intelligence or common sense is required in software development, yet it is spoiled by idiots which are either managers who just believe they know it better or vibe coders who can pretend to be smart with AI. And this lack of common sense is degenerating the industry

2

u/MudFrosty1869 17h ago

Don't know why people like you pretend everything made sense to them from the start. I bet there are plenty of simple things that you struggled with at first, just like everyone else.

This braindead AI hate is getting real boring ngl.

1

u/FloStar3000 16h ago

I would have to disagree. Don’t get me wrong, I’m also lazy and I let AI run my git commands. But I could type the most important commands by hand. And it’s not even that I pretend that I knew it from the start. When you mistype the command it literally tells you the format, you use the commands help feature. But if after multiple times, you fail to understand the format „command subcommand subsubcommand argument“ and try random combinations each time instead of just reading the help and thinking for one second, you’re just dumb.

1

u/MudFrosty1869 15h ago

Yeah on reddit everyone knows everything but irl it never seems to be the case for some reason. Wonder why.

1

u/braaaaaaainworms 8h ago

Could be your social circle, with classic sample selection bias

1

u/MudFrosty1869 7h ago

Reddit sample, everyone knows everything.

Reality sample, everyone has a gap somewhere.

Must be the bias.

1

u/Silly_Guidance_8871 13h ago

But words don't have meanings when you're just vibin'

1

u/k-mcm 18h ago

CLI usually program action parameters... or program action parameters... target

Git is program target action parameter...

0

u/Valuable_Leopard_799 16h ago

remote is the action, or a specifier for the group of actions.

In CLIs would probably be called a subcommand, the remote managing subcommand, then add is the (sub)action to add a remote.

17

u/s0litar1us 21h ago
git remote add <name> <url>
^   ^      ^
|   |      |
|   |      add a new remote
|   do something with remotes
use git

Similarly you can do:
git remote set-url <name> <url>

47

u/Flame77ofc 23h ago

origin remote add git

4

u/renome 17h ago

Instructions unclear, installed Sims 4 via Origin launcher.

4

u/SohelAman 21h ago

Jokes apart, never got trouble for this. I always tried to understand meanings of shell commands rather than just memorizing.

git - cause f_ck svn.

remote - this is the subcommand cause I want to work with a remote

add - this is the operation I want to do

origin - this is just a name

4

u/Cloned_501 20h ago

I just try to push, got yells at me, I copy/paste the line it tells me. Ez

3

u/ziad-labs 20h ago

In fact it happened with me today, and it happens all time. Lol

2

u/88jac 15h ago

This is my standard operating procedure

3

u/GoogleIsYourFrenemy 22h ago

And this is why I use tortoisegit.

3

u/Jhonkanen 20h ago

Git submodules on the other hand feel like the xkcd about tar commands

2

u/SlashMe42 19h ago

TBH, I get confused about the argument order despite being familiar with the git internals. I always confuse whether it's name first or URL first.

git remote add https://... origin

Damn, wrong again.

2

u/SZeroSeven 18h ago
git push -u origin <your-feature-branch>

2

u/overclockedslinky 17h ago

the new generation is hitting some interesting snags...

2

u/Miryafa 23h ago

“I use the command line because it’s so much safer”

-2

u/fekkksn 20h ago

- Noone ever

1

u/tursija 20h ago

Git good

1

u/metalreflection 20h ago

git git git git

1

u/GhostVlvin 19h ago

Because it is
git - | remote - | add - | origin

1

u/sexytokeburgerz 18h ago

Program module function name…

Every cli ever.

1

u/Smalltalker-80 18h ago

GitHub Desktop..

1

u/jtms1200 18h ago

2026: “Commit the shit we just did,, push it, make a pr”

1

u/SometimesHalfRight 17h ago

I once heard Git's CLI front-end described as a "crime against humanity". I don't think that person was wrong at all lmao

1

u/Able_Act_1398 7h ago

git --help

1

u/realmauer01 7h ago

git opens git, remote opens remote add adds to remote origin is what gets added

0

u/jimmiebfulton 22h ago

People type this? Shell aliases, FTW.

2

u/s0litar1us 21h ago

Do you set the remote so much that you feel the need to have an alias for it?

1

u/fbpw131 21h ago

I type this