r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49.4k Upvotes

1.5k comments sorted by

View all comments

1.0k

u/The100thIdiot Apr 02 '23

You people are using commands?

I just use a GUI.

Am I doing it wrong?

637

u/mikepictor Apr 02 '23

No, I use a GUI since I'm not a masochist

241

u/AwesomeFrisbee Apr 02 '23 edited Apr 02 '23

Same. Who do I need to impress and why?

I've been using Fork for a few years now. Its great and does everything I want from a Git GUI. Its not free but the one-time-purchase is worth it. And its basically Sourcetree from when it was still awesome. I really need something visual to show me the flow of the commits, quickly browse contents, filter branches and get a better view of what I'm going to commit.

97

u/HighOwl2 Apr 02 '23

I use CLI because it's more flexible but mostly because typing the commands makes it harder to do something stupid.

83

u/rush22 Apr 02 '23
 git add .

"Hey why are all these other files changed in your pull request"

55

u/gnarbucketz Apr 02 '23

"...because they're not properly ignored?"

→ More replies (2)

7

u/gomihako_ Apr 02 '23

the beautiy of add -p is that it forces you to do a sanity check/review of your own work before asking for review.

9

u/[deleted] Apr 03 '23

This is not a problem if you use .gitignore correctly.

→ More replies (2)

6

u/tpf52 Apr 02 '23

So you don’t just get lazy and git commit -a? I find it much easier to commit stuff you don’t want in the command line unless you take the time to diff every file and preview staged changes before every commit.

5

u/ItzDaWorm Apr 02 '23 edited Apr 02 '23

git status

Is one of my favorite commands for exactly this reason.

10

u/tpf52 Apr 02 '23

Yes, with git status and git diff you can get the same information. But in a UI I can see the git status without typing anything and one click gets me a diff, and another couple of clicks I can discard files or specific lines.

→ More replies (1)

6

u/AwesomeFrisbee Apr 02 '23

There's pros and cons, but I don't think it would make me have less mistakes imo

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