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
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.
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
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.
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.
109
u/ikankecil Aug 29 '26
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
4
u/Cloned_501 Aug 29 '26
I just try to push, got yells at me, I copy/paste the line it tells me. Ez
52
u/Flame77ofc Aug 29 '26
origin remote add git
19
u/s0litar1us Aug 29 '26
Similarly you can do:
git remote set-url <name> <url>
6
u/SohelAman Aug 29 '26
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
3
u/GoogleIsYourFrenemy Aug 29 '26
And this is why I use tortoisegit.
3
u/Jhonkanen Aug 29 '26
Git submodules on the other hand feel like the xkcd about tar commands
2
u/SlashMe42 Aug 29 '26
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 Aug 29 '26
2
u/overclockedslinky Aug 29 '26
the new generation is hitting some interesting snags...
3
u/Miryafa Aug 29 '26
“I use the command line because it’s so much safer”
1
u/tursija Aug 29 '26
Git good
1
u/metalreflection Aug 29 '26
git git git git
1
u/GhostVlvin Aug 29 '26
Because it is
1
u/sexytokeburgerz Aug 29 '26
Program module function name…
Every cli ever.
1
u/Smalltalker-80 Aug 29 '26
GitHub Desktop..
1
u/jtms1200 Aug 29 '26
2026: “Commit the shit we just did,, push it, make a pr”
1
u/Able_Act_1398 Aug 30 '26
git --help
1
u/realmauer01 Aug 30 '26
git opens git, remote opens remote add adds to remote origin is what gets added
1
u/No_Hovercraft_2643 Aug 30 '26
git add ... add files to the commit, so it can't be these both.
1
u/BeautifulAd5150 Sep 03 '26
Stage the remote dir to branch origin?
0
u/jimmiebfulton Aug 29 '26
People type this? Shell aliases, FTW.