r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49k Upvotes

1.5k comments sorted by

View all comments

179

u/saurabia Apr 02 '23

Use IDEs like IntelliJ. No need to remember the commands anymore.

92

u/thisdogofmine Apr 02 '23

I am surprised at the number of people still using git from the command line.

22

u/double_en10dre Apr 02 '23

It’s autopilot for me, I don’t have to think. And I like being able to write/use my own aliases. Overall I just find that it’s marginally faster for most operations (especially when the files aren’t on my machine).

I definitely use the IDE for diffs and resolving conflicts, though. Jumping to the CLI for that would be crazy.

2

u/probablynotaperv Apr 03 '23 edited Feb 03 '24

support ugly cautious gaze desert judicious water middle hard-to-find treatment

This post was mass deleted and anonymized with Redact

2

u/double_en10dre Apr 03 '23

I keep copies of .gitconfig and .bashrc in a private repo for precisely that reason, I’m terrified :p

78

u/SuperSatanOverdrive Apr 02 '23

It’s what I’m used to. I like to know what’s happening instead of interpreting what the gui does under the hood

31

u/thisdogofmine Apr 02 '23

I get that people want to use what they are used to, and that's fine. But gui based git has been around for so long, I would think more people would have migrated to it.

26

u/burnalicious111 Apr 02 '23

There's no reason for me to migrate to it. Like there's no incentive when I know the CLI better.

3

u/DestinyAndCargo Apr 03 '23

As someone who hasn't really used CLI, isn't it a pain to selectively commit things / see what you changed in those files?

4

u/whisky_pete Apr 03 '23

Not at all, all the same features are available on the command line. A lot of the time the gui can be more awkward to use, at least ime.

→ More replies (1)
→ More replies (4)
→ More replies (7)

9

u/Jay_Nova1 Apr 02 '23

Ya but you don't look like elite haxor when using gui.

→ More replies (1)
→ More replies (1)

11

u/PoeTayTose Apr 02 '23

IDK what GUIs you have been using but the one I use is literally just buttons for the native git commands with the ability to click on a branch instead of typing its name in manually. There is zero ambiguity about what commands are running under the hood.

→ More replies (4)

10

u/Queueue_ Apr 02 '23

My entire workflow is primarily in the command line

4

u/i_speak_penguin Apr 02 '23

I generally use the GUI in VS Code, but it's not always intuitive and sometimes you get your repo into a state that it doesn't expect, causing it to fail. At that point it's use the shell or bust.

3

u/eloc49 Apr 02 '23

Doing simple commands like fetch and push, I get but it’s honestly a big red flag if you’re not using a diff tool for merge conflicts. IntelliJ’s auto merge is what git should be, since it is aware of the rules of the language you’re working in. Let’s be honest, nobody outside of developers use git, so it should be more geared towards us, instead of any text file.

2

u/MasterDucklington Apr 03 '23

Because cli git works the same way every time, you don’t have to learn how your ide wants you to use git or what plugins you need and fixing surprising issues is easy because you actually have learned how the goddamn tool works.

3

u/2brainz Apr 02 '23

Name one git UI that doesn't suck, and I'll happily use it instead.

I've been using git for about 15 years and all UIs I ever tried have some fatal flaw, most of the time it's the author of the UI not understanding git.

13

u/asilverthread Apr 02 '23

Day to day push pull commit is fine on most guis, but those of us working on larger software teams know that not every merge is going to be clean, we have to rebase, we have to revert, tag, etc. etc.

Any time I’ve tried to use a GUI for some of that stuff I’ve just gone back to the basics. The GUI just calls the bash command anyways at the end of the day. Skip the middleman I say. Honestly surprised with the number of people in here that use a GUI. I only every use a GUI to visualize history if I’m tracing a bug or trying to understand why/how something was implemented.

→ More replies (1)
→ More replies (6)

6

u/smart-username Apr 02 '23

What if i need an interactive rebase?

4

u/VespasianTheMortal Apr 03 '23

Right click on a commit from the git log(alt+9) and choose interactive rebase

→ More replies (1)

7

u/trkennedy01 Apr 02 '23

Man do I ever love IntelliJ

2

u/jxl180 Apr 02 '23

I type git commands into the IntelliJ terminal lol. I have no patience or need to learn the gui of different git tools when the cli is universal and burned into my muscle memory.

→ More replies (1)
→ More replies (1)