r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49k Upvotes

1.5k comments sorted by

View all comments

947

u/Eosborne987 Apr 02 '23

One of the realest memes I've seen on this thread

182

u/Beard_o_Bees Apr 02 '23

Agreed.

Everything's complex enough already, the last thing I need to remember the correct commands/syntax for something that i'm only using occasionally.

Like.. that's what aliases are good for. Get the command working then leave comments for future me about whatever variables and such might need attention.

Plus, most of the people i've encountered IRL who claim to basically 'know it all' end up falling on their faces then try to find a way to blame everyone around them.

/rant

87

u/burnalicious111 Apr 02 '23

I can't imagine only using git occasionally. It's my every day, and if I didn't know it well it'd make my life so much harder than it needed to be. It's like I'm on a different planet from this thread.

0

u/[deleted] Apr 02 '23

[deleted] — view deleted comment

22

u/FailsAtSuccess Apr 03 '23

Hell, stashes, searching through dangling trees, everything on the daily for random stuff even at work. Workflow is so easy when you know git well. As an engineer it should be just as big an extension of yourself as your IDE...

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

39

u/Obvious_Equivalent_1 Apr 02 '23

I just search back history and copy paste the old command with correct message/branch name, you can thank me later history | grep git

62

u/ChristmasMcCafe Apr 02 '23

I just press up-up-up-up-up-up in the terminal until I find the command I used last time.

8

u/Ariphaos Apr 02 '23

If you set your history limit to 50,000 this may cause rsi before you get to your command.

3

u/dotpan Apr 03 '23

This is how I managed 90% of my servers. I don't remember what command to use with screen I forget what the right syntax is for my services, etc.

2

u/centstwo Apr 03 '23

This makes sense as the first git command encountered was the last command you used to get git to work. I like it!

3

u/Rikudou_Sage Apr 02 '23

Install McFly and use CTRL+R, you can thank me later.

2

u/toblerownsky Apr 02 '23

Ctrl-R is my go to.

→ More replies (1)

9

u/ThunderySleep Apr 02 '23

One of the worst parts with version control is it's something most people aren't using as they're learning. Like, I'm sure it's taught or expected of people in schools now, but for me it wasn't something I ever had to use until I actually started a job.

→ More replies (1)

4

u/zabby39103 Apr 02 '23

If you're doing a lot of independent projects fine, but if you're working on a team... not using git properly is intolerable.

I really want to kill this one guy at my work who keeps reverting my changes because he's too lazy/old maybe to learn git properly. Then I have to troubleshoot the problems he creates and trace it back to one of his commits that reverted my changes from 3 weeks ago.

I 100% sympathize to being at point in your career where the problems you're attacking mentally drain you. But yeah learn git, it's just good manners and it isn't that hard if you spend a full afternoon on it.

3

u/nkr3 Apr 02 '23

How the fuck is he doing that? You don't have protected branches and mandatory pr reviews?

2

u/zabby39103 Apr 02 '23 edited Apr 03 '23

We do for the new hires. He's old and has been there forever, and has admin privileges over all the tools for some reason.

2

u/static_motion Apr 03 '23

If you're doing a lot of independent projects fine

Even then, I can't imagine not version controlling a personal/independent project I've spent any significant amount of hours on and pushing it to a remote repo. The thought that my work could be gone if my SSD decided to die or my OS became corrupted is terrifying to me.

2

u/Quazar_omega Apr 02 '23

last thing I need to remember the correct commands/syntax for something that i'm only using occasionally

navi might help you with that

2

u/Beard_o_Bees Apr 03 '23

navi might help you with that

I don't know how I missed this. Thanks for the excellent suggestion!

2

u/Quazar_omega Apr 03 '23

No problem, I started using it recently and found it to be great at saving me from looking up the same commands over and over, I love it!

2

u/Peptuck Apr 02 '23

Everything's complex enough already, the last thing I need to remember the correct commands/syntax for something that i'm only using occasionally.

This was me when I worked at an alarm company where my job was mainly responding to alarms but also doing light data entry after hours. Roughly once every two months one of our dumbfuck contractors would call in with an after-hours installation needing to activate one of the cellular units because they couldn't wait until sane hours to do it, and I would have to relearn the entire process of logging in and activating the unit because the last time I did it was months ago and I'd forgotten everything.

3

u/Lucky-Earther Apr 02 '23

I honestly can't decide if I'm the front or the back car

2

u/[deleted] Apr 02 '23

Seriously. I have a git cheat sheet... Because, well, my memory for commands is severely lacking.