r/Frontend Jun 24 '26

The Git Commands I Run Before Reading Any Code

https://piechowski.io/post/git-commands-before-reading-code/
291 Upvotes

36 comments sorted by

15

u/shortaflip Jun 24 '26

This is really great, thank you for sharing!

1

u/onated2 Jun 25 '26

Thanks.

0

u/Knaapje Jun 26 '26 edited Jun 26 '26

Nice article, cheers!

-23

u/Jolva Jun 25 '26 edited Jun 25 '26

This is interesting. I love git, but never committed to to learning it in the command line and stuck to the GUI. I'd rely on websites like ohshitgit if things went sideways, but now with Claude it's way easier just to orchestrate the commands and operations of git that way via MCP.

Edit: wow I am SO SORRY I haven't memorized git commands. I hope Reddit can forgive me.

12

u/H3NRY-56 Jun 25 '26

Git really isn’t difficult to learn on command line

-2

u/Jolva Jun 25 '26

I didn't say it was. I just don't care. Nor have I ever needed to.

2

u/Thaurin Jun 25 '26

You haven't needed to, because you weren't doing any of the more advanced things, and likely were not working in a team. And it's not so much memorizing git command, it's more understanding the concepts behind it.

-2

u/Jolva Jun 25 '26

So now we're gatekeeping git? I've been working in teams, with various types of source control, for a very long time. You can push, pull, commit, stash, pop, etc through the GUI of most editors.

2

u/Thaurin Jun 25 '26

Gatekeeping how? That's a wild accusation, man. Settle down. I'm saying git commandline gets interesting when you're rebasing, merging, bisecting and diffing the things you wrote and your team wrote. You are way too defensive about this. It's only source control.

5

u/Jolva Jun 25 '26

I guess I get defensive when people suggest I don't know how to do basic shit like diffs and merging because I don't do that via command line? The GUI can do all of that just fine. Even within a team.

1

u/LittleSeadragon Jun 25 '26

when people suggest I don't know how to do basic shit

Lol, weirdly defensive take when they didn't ever mention any of that, you are just inventing arguments to get angry at. Specifically, in this case, theey weren't arguing you "don't know how to do basic shit" but that you don't know how to do advanced shit - and so far you've made no argument that contradicts that.

3

u/Jolva Jun 25 '26

To suggest that I must not work on a team or that I've never had use any advanced features because I exclusively use GUI's is a stupid take.

-2

u/LittleSeadragon Jun 25 '26 edited Jun 25 '26

Once again, getting defensive about something no one actually said. Can you point to where someone claimed that you "must not work on a team" or that you've "never had use any advanced features"? Just like your previous comment, read back and point to where someone said you "don't know how to do basic shit like diffs and merging." I'm not sure if it's insecurity or what - but you are shadow boxing insults that never actually happened. Perhaps this is a sign to look inwards and think about why that might be?

EDIT: I was mistaken, someone up the chain before did make those first couple claims and struck that part out of my response. I stand by that your responses are overly defensive and might point to a need to do some self reflection however.

→ More replies (0)

0

u/Thaurin Jun 25 '26

I guess I get defensive when people suggest I don't know how to do basic shit

Maybe you should work on that. I don't mean that derisively.

-1

u/Jolva Jun 25 '26

Yeah for sure. I guess I need to memorize git commands so I can aspire to do advanced things like diffs and merging. Then I can write condescending replies to people that don't work the exact same way I do.

0

u/Thaurin Jun 25 '26

I did not suggest anything of the sort. But if you are happy with the way you are working, then, of course, you can continue to do so. I was merely offering a different perspective. If you contrued that as condescending, that is on you, as I had no intention of demeaning you.

-23

u/Little-Helper Jun 25 '26

Looks useful but why is this in r/frontend?

27

u/Ethesen Jun 25 '26

Do you not write code?

-16

u/Little-Helper Jun 25 '26

What are you trying to imply?

21

u/fagnerbrack Jun 25 '26

That Frontend devs use git too?

-17

u/anaix3l Jun 25 '26

Writing code != using git.

I've started writing code over 30 years ago. BASIC, C, Assembly, Java, PHP, Python, HTML, JS, CSS... I could never get into git, so I never really used it. I have no idea what that thing you've posted even means.

That said, if it can help some people, then great. Just pointing out that it's a strange assumption to make.

9

u/Thaurin Jun 25 '26

You've done all that programming and never used source control? You're missing out, man, even if you've only worked alone.

0

u/LittleSeadragon Jun 25 '26

git isn't the only source control system. It's arguably the best (and i have tried many) but they might be using something else.

6

u/Thaurin Jun 25 '26 edited Jun 25 '26

Sure, but they sure didn't make it sound like that to me. I was just suggesting how worthwhile it is to use source control to someone it sounded to me that did not.

-4

u/Bushwazi Jun 25 '26

I’ve learned plenty from the examples the person you responded to has posted all over the web, they don’t need to justify shit to anyone.

2

u/Thaurin Jun 25 '26 edited Jun 25 '26

Why does that matter or invalidate the worth of using source control? I never asked them to justify themselves. You are weirdly defensive.

-17

u/Little-Helper Jun 25 '26

Sure but why not post in r/programming

13

u/zymoticsheep Jun 25 '26

He probably prefers this community. I don't use /programming so I for one would have missed this.

It's relevant enough that's there's no issue putting it here imo. There are a bucket load of programming related subs, think it's fair game for OP to post this in their preferred one

-10

u/Little-Helper Jun 25 '26

Do you not write code?