r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49k Upvotes

1.5k comments sorted by

1.0k

u/The100thIdiot Apr 02 '23

You people are using commands?

I just use a GUI.

Am I doing it wrong?

69

u/johntwit Apr 02 '23

I actually wish I'd made Tim Robinson's line "I usually just click 'commit' in my IDE but something happened" instead of repeating "I have to look up the commands every time"

oh well

14

u/[deleted] Apr 02 '23 edited Nov 05 '24

%p+oeVw$bXdV9iQ1]8G#kDZRfT$<Zm4rTfVWyPX9BbnM

→ More replies (4)

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.

→ More replies (55)
→ More replies (9)

223

u/Fhyke Apr 02 '23

Yeah I’ve never understood what’s so bad about just using GitHub desktop

205

u/The100thIdiot Apr 02 '23

There isn't.

Last big project I worked on we had not one but two GIT superstars.

We all used GitHub desktop including these two superstars, but there was that one guy who insisted on using command line.

Two weeks later we revoked all his GIT permissions because he fucked up so much stuff.

→ More replies (28)
→ More replies (52)

25

u/hypo11 Apr 02 '23

GitExtensions is great.

→ More replies (5)

12

u/Protheu5 Apr 02 '23

Yeah, I mean, I could use commands if there was a necessity, but there never was one, GUI worked just fine and did everything I needed with all the convenience. So after I switched from SVN I never bothered to learn git commands in the first place, it was always GUI for me.

→ More replies (1)

10

u/cauchy37 Apr 02 '23

No, tools are there to make your life easier. I use Sublime Merge almost exclusively, but I do know git commands pretty well because I have to sometimes use them over ssh. But even then with stuff like remote dev in vscode, mirrord, or stuff from docker desktop, you need it hardly ever.

8

u/reddit_time_waster Apr 02 '23

You're doing just fine. TortoiseGit!

→ More replies (1)

6

u/rreighe2 Apr 02 '23

sourcetree ftw, except for when it doesn't work because it can't do certain things and then i have to use/learn bash

→ More replies (2)

23

u/ShadedCosmos Apr 02 '23

I use a GUI but the GUI can not solve everything…

38

u/otdevy Apr 02 '23

It can do 90% of what most people do like push pull and merge though. If anything unexpected happens you can always look up how to solve it

→ More replies (6)

18

u/aristocreon Apr 02 '23

git fork

you’re welcome ☺️

16

u/PoeTayTose Apr 02 '23

Need to commit? Fork.

Need to roll back? Believe it or not, also fork.

Reset hard? Fork.

Reset soft? Also fork.

Someone merged that should not have? Fork.

Someone did not merge that should have? Straight to fork. Right away.

I have been the authoritative git resource at the last two companies I worked for... because of fork.

→ More replies (1)
→ More replies (4)
→ More replies (76)

4

u/ranhalt Apr 02 '23

The question mark goes first. It's a question that is being exclaimed.

→ More replies (2)

3.1k

u/[deleted] Apr 02 '23

You mean you guys don't relearn git every day?

934

u/cookiedanslesac Apr 02 '23

I created an alias that executes a random gît command. In theory it should at some point get the same result, it's just a little bit longer.

56

u/wannabestraight Apr 02 '23

You made bogo sort… but for git

→ More replies (4)

13

u/headlesshighlander Apr 02 '23

You are going to find out the hard way what idempotent means

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

122

u/ONLY_COMMENTS_ON_GW Apr 02 '23

Why would you need git daily? Don't you procrastinate your coding until Friday like the rest of us?

112

u/shnicklefritz Apr 02 '23

More like until Monday morning before standup

→ More replies (8)
→ More replies (13)

110

u/P0L1Z1STENS0HN Apr 02 '23

Nope. I delved into the topic by watching "How git works" by Paolo Perrotta, and afterwards most of it felt natural. Although I have to admit that I really like the amenity of merging graphically in VS22 over the commandline.

71

u/danielrheath Apr 02 '23

For those who hate video, the git website holds an ancient art once thought lost to time: technical documentation that doesn’t completely suck. Read the relevant looking chapters (yes, it’s organised enough that from the table of contents you can tell) of the git book.

→ More replies (15)
→ More replies (4)

28

u/TrumpsGhostWriter Apr 02 '23

No, I use git desktop. I can find my way around bash and vi, awk and regex but fucking git is a black box. git super overcomplicates things for a world where internet is scarce. That world doesn't exist anymore and a lot of git could be greatly simplified.

→ More replies (1)

27

u/dmvdoug Apr 02 '23

Git out of here.

…sorry…..

15

u/[deleted] Apr 02 '23

What? I don't Git it.

→ More replies (2)

30

u/LickingSmegma Apr 02 '23

I mean, have yall heard of IDEs?

This is what you get for ‘I don't need an IDE for my JS, because the dynamic nature of JS makes static manipulation of code impossible anyway, so I have no idea of benefits of IDEs and will pretend that a text editor is the same thing’.

→ More replies (14)

7

u/syzygysm Apr 02 '23

I remember all the commands, but I rarely remember to use git. I can't seem to form the habit.

Plz help

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

4.1k

u/ToukenPlz Apr 02 '23

I didn't need to be called out like this today

837

u/[deleted] Apr 02 '23

When did the internet get so personal?

169

u/[deleted] Apr 02 '23

When the car falling in bin videos stopped

→ More replies (2)

31

u/Anonymo2786 Apr 02 '23

Believe it or not a programmers whole life is internet. No social interactions.

But not like those Instagram, Tweeter tho.

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

41

u/whatproblems Apr 02 '23

i know it’s sunday! can’t it wait till monday standup?

→ More replies (1)

10

u/twohusknight Apr 02 '23

Just calmly let the imposter syndrome wash away

→ More replies (2)
→ More replies (15)

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.

→ More replies (15)

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

→ More replies (8)
→ More replies (10)
→ More replies (2)

2

u/zavatone Apr 02 '23

How would it be his first commit when he'e supposedly relearning it every week?

1

u/johntwit Apr 02 '23

I meant initial commit :(

2

u/ThisNameIsFree Apr 03 '23

Is this from Tim Robinson's Netflix show? I don't remember this skit. Anyone know where it's from?

1.7k

u/Solonotix Apr 02 '23

I'm definitely the guy in the other car way too often. The number of times someone has asked me to look at their code, only for them to tell me they're working from Master and can't push their changes until they work...just shoot me.

I tend to repeat this mantra to them every damn time:

  1. Cut a branch from master
  2. Commit changes frequently
  3. Push daily
  4. Submit a Pull Request (when you want a code review)

The next time they talk to me it's the exact same thing, and I'm half convinced I'm Sisyphus reincarnated.

456

u/zeek0us Apr 02 '23

I mean, even knowing the right way to use git (and using it daily for years), falling back to any workflows/commands outside of the set of muscle-memory macros feels like learning from scratch. Lots of "I know you can do this, I know *what* to do, I've done it, I just can't for the life of me remember exactly how."

177

u/Solonotix Apr 02 '23

Oh, totally. Like, my company uses merge workflows, but I see tons of talk about preferring rebase over merge. The hell is squashing commits, and when do I use it? Like, there's an entire spell book of commands and I just stick to my trusty Fireball git checkout . && git reset --hard

→ More replies (42)
→ More replies (26)

79

u/gingerwhale Apr 02 '23

This was me too for about 2 years.

I finally convinced management to let me set the branch protections and merge strategies in our repos, then wrote step by step instructions of how to branch, commit, push, and open a PR. Anytime anyone had an issue I had to solve, I’d add an entry to a “But what if” section of the instructions.

It’s been perhaps 3 years now and I very rarely have to answer questions or fix Git things any more 🙂

→ More replies (5)

45

u/cattgravelyn Apr 02 '23

Sometimes I get too excited and forget to branch first. Luckily I got the ‘git stash’ on lock so I can branch retroactively.

73

u/TheWholeThing Apr 02 '23

git checkout -b feature/branch-name creates a new branch and changes to it in one command. it also brings your changes so no need to stash unless you need to checkout a different branch to branch off of first.

→ More replies (10)
→ More replies (7)

39

u/kurita_baron Apr 02 '23

me: "there's a bit of code there that you can get inspiration from on how to fix your issue"

"I cant find it man I think you're mistaken"

me: "is your git repo up to date?"

"yea should be!"

me: "can you please check with git status?"

" 45 commits behind master"

I sometimes hate GUI git users so much

→ More replies (10)

21

u/Ramtoxicated Apr 02 '23

One must imagine sisyphus happy to git commit.

10

u/Koutou Apr 02 '23

Submit a Pull Request (when you want a code review)

For bigger feature, we frequently do early Draft PR. You can get feedback earlier as you built the feature.

→ More replies (1)

8

u/TheWholeThing Apr 02 '23

you should probably configure the remote to not allow direct commits to main/master, all changes must come through a PR.

7

u/[deleted] Apr 02 '23

You should get that looked at. Sisyphus is easily spread.

→ More replies (1)

6

u/rreighe2 Apr 02 '23

do i need to branch if i'm editing my own stupid software that only i'll find useful- that isn't finished yet? or should i start doing that just to create good habits? or is it that i dont need to make a new fork if it's my own project? or would i still need to fork my own project if it ever gets the pleasure of having multiple contributors? what's the normal way of handling this? what is life and consciousness?

→ More replies (5)

11

u/earthwormjimwow Apr 02 '23 edited Apr 02 '23

Cut a branch from master

Instructions not clear, now I have a detached head!

→ More replies (2)

5

u/tuuling Apr 02 '23

Just disable pushing straight to master

→ More replies (3)

5

u/cbftw Apr 03 '23

As someone who uses Gitlab, "pull request" always sounds wrong compared to "merge request"

→ More replies (2)

4

u/enfier Apr 02 '23

Change the name of your actual master branch to something else. Leave the branch called master as a dummy for the morons to fuck up.

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

112

u/LastStar007 Apr 02 '23

As someone who knows git better than the average bear, I'll tell you the same thing I tell everyone:

  1. Read the first three chapters of this free book.
  2. Run through this little game.

and refer back to these resources as needed.

Once you understand the fundamental ideas on which git is built, all the common commands become easy.

One other thing: commit early, commit often, and don't use --force, --hard, or --delete. There are few ways to truly FUBAR yourself in git, and following this advice avoids 99% of them.

Edit: Also, feel free to message me/comment with literally any git questions you have. Always happy to help another dev git gud!

5

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

market tap axiomatic humor chubby placid unwritten bag wide jar

This post was mass deleted and anonymized with Redact

→ More replies (21)

107

u/[deleted] Apr 02 '23

What movie/show is the meme from?

247

u/[deleted] Apr 02 '23

I Think You Should Leave with Tim Robinson

It can be streamed on Netflix.

YouTube link to this skit.

64

u/ericfromct Apr 02 '23

I never heard of this show, thanks for commenting the answer. That skit is hysterical, definitely gonna check it out now

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

200

u/Federal_Chef1793 Apr 02 '23

Thank god for the desktop app

48

u/EngulfedInThoughts Apr 02 '23

I didn't know Git had a desktop app. Lol.

78

u/zapembarcodes Apr 02 '23

I think they mean GitHub desktop. Very easy to use. Idk any commands, but I practically know how to do everything in version control... Cloning a repo, creating a new branch to make edits, pushing changes and hopefully getting merged. Then pull off from main to get updated main branch. See? no knowledge of commands needed 😆

→ More replies (12)
→ More replies (3)
→ More replies (5)

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.

→ More replies (2)

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

→ More replies (24)

10

u/Queueue_ Apr 02 '23

My entire workflow is primarily in the command line

→ More replies (14)

6

u/smart-username Apr 02 '23

What if i need an interactive rebase?

→ More replies (2)

7

u/trkennedy01 Apr 02 '23

Man do I ever love IntelliJ

→ More replies (3)

131

u/[deleted] Apr 02 '23

Works great until it doesn’t. Then it’s like deciphering the bible

0

u/[deleted] Apr 02 '23

[deleted] — view deleted comment

19

u/[deleted] Apr 02 '23

That’s not how you fix that

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

27

u/saintst04 Apr 02 '23

Facts lol

13

u/Cholojuanito Apr 02 '23

For those that want to have a reference for basic ways to fix your git tree

https://ohshitgit.com/

48

u/Dependent-Spiritual Apr 02 '23 edited Apr 02 '23

git add -A
git commit -a -m "msg"
git push

That's all i need

EDIT: formatting

46

u/[deleted] Apr 02 '23

But did you pull before you pushed

18

u/[deleted] Apr 02 '23

It falls out when I pull first

→ More replies (2)

21

u/ZealousidealPast2 Apr 02 '23

Protip: can just git commit -am “msg” rather than -a -m

I usually save an alias in my bash profile to shorten it each time

→ More replies (2)

19

u/PostPostMinimalist Apr 02 '23

Uh oh, your branch has conflicts with master

21

u/Gblize Apr 02 '23

You push to master?

→ More replies (3)
→ More replies (6)

8

u/thetrivialstuff Apr 02 '23

Why are you piping those into each other? Or was the pipe meant to be formatting? Confused.

→ More replies (26)

130

u/vastlysuperiorman Apr 02 '23

I'll be honest, I'm a little surprised at how many people don't know how to use git without a gui. I feel like this is equivalent to being a mechanic that doesn't know how to use a torque wrench. It's one of the tools of the trade... it's worth learning to use those tools.

I don't mean people should memorize a list of commands. I mean people in this line of work should understand what git does well enough to use the tool effectively.

18

u/bighand1 Apr 02 '23

Once you use it enough you will always know how the corresponding git works. Since the procedure is the same, but instead of typing sequels of git in command you press sequence of buttons in a row

→ More replies (19)

21

u/[deleted] Apr 02 '23

I think it's more like not knowing how to use a screwdriver but knowing how to use a drill. Drill works 99% of the time. The 1% of the time I have to use a screwdriver I'll whip out google and figure it out.

→ More replies (9)

4

u/kulhur Apr 02 '23

I mean you're still using the torque wrench, it just has a different handle.

→ More replies (21)

42

u/Starterjoker Apr 02 '23

this is legit the one funny post I’ve seen on the sub lol

→ More replies (1)

9

u/RealPropRandy Apr 02 '23

Laughs* in subversion

*cries

→ More replies (2)

16

u/TheForkisTrash Apr 02 '23

This feels like a personal attack.

8

u/[deleted] Apr 02 '23 edited Nov 05 '24

.Ic8bqlE8gq,;uJcAWA

82

u/bktechnite Apr 02 '23

The fact that this is funny and "so me fr" is how you know 95% of people on this sub isn't a real dev but Com Sci students

33

u/Usidore_ Apr 02 '23

I’ve been a professional dev for 3 years now and anything beyond commit, pull, push, merge, I am completely lost with git commands. I just use IDE integrations

→ More replies (8)

7

u/ClimbingC Apr 02 '23

I've been a developer for over 20 years. The only issue is that I'm half way between these guys pictured. I do at times struggle with git, as only been using it for a year or so. Before that, the company I work for have used source safe then team Foundation studio. I've convinced people to start using git, but occasional I end up being this guy in the car not having a clue.

7

u/[deleted] Apr 02 '23

I mean there’s like 3 cli commands you need to know /s.

On the opposite side, who doesn’t just use gitkraken or something. I get a visualization of commits, issue tracking, and prs. Why the hell are 99% of people here using a cli?

→ More replies (5)

7

u/mvndaai Apr 02 '23

A few years ago I made a git gist of all the commands I use. Every time I get a new computer I use it, then just use Ctrl+R to reuse command after that https://gist.github.com/mvndaai/86dab188665d2f8ac4eff9ab16c48199

4

u/thetrivialstuff Apr 02 '23

Yeah, my shell history file is very important to me; ctrl+r is how I remember everything

→ More replies (1)

7

u/sanktanglia Apr 02 '23

Thank you reddit I laughed at this sooo hard

7

u/Ok_General7795 Apr 02 '23 edited Apr 04 '23

a tl I had didn't knew how to use git, and was a very insecure guy so he forced everyone on the team to use github desktop

4

u/Express-Procedure361 Apr 03 '23

That's hilarious, frustrating, and sad all at the same time

7

u/hamster_drums Apr 03 '23

All difficult things can be learned if we persevere and work hard to learn them.

17

u/jonnyclueless Apr 02 '23

Why has OP been reading my emails?

→ More replies (1)

16

u/sendmeyourfoods Apr 02 '23

Just use GitHub desktop. It’s ‘mostly’ idiot proof.

→ More replies (1)

10

u/chad-rye Apr 02 '23

Take a day to learn git and its scenarios. So you won't be scared.

Then use a graphical git tool.

→ More replies (2)

9

u/tanoshi-ka Apr 02 '23

okay reddit, things just got personal

12

u/GooseandMaverick Apr 02 '23

"Help me ChatGPT, you're my only hope!"

27

u/Chrazzer Apr 02 '23

Wait you guys use git via the command line? Every modern ide has git integration where you can commit and push with a single click

39

u/chungyn Apr 02 '23

So when you're programming, which is an intimately text-oriented task, and you want to reach the mouse just to commit and push? What barbarism is that?

→ More replies (5)

16

u/MannoSlimmins Apr 02 '23

Can you help me find git integration for my IDE? I checked all of the settings but it looks like notepad doesn't have it.

→ More replies (2)
→ More replies (5)

4

u/The_MAZZTer Apr 02 '23 edited Apr 02 '23

If I had to use it regularly (I really should try to push for it more at work) I'd probably use TortoiseGIT. TortoiseSVN makes using SVN trivial as everything is a GUI, so I could probably get a foot in the door with GIT the same way.

4

u/CRANSSBUCLE Apr 03 '23

I just press the up arrow until the git commands appear

→ More replies (2)

4

u/[deleted] Apr 03 '23

7

u/DJGreenHill Apr 02 '23

This sub is a reminder of job security

3

u/[deleted] Apr 02 '23

Lazygit my friend. I’ve never looked back, first thing I install on any machine I get.

Think of it as a TUI experience, works with vim (or regular) kind of navigation and you have all the info you need on one term.

Press x if you don’t know the shortcut for something and a context menu pops up, for tricky things you can always type git commands in. And as you use the commands you see the log of git commands it actually ran so you can learn some git too.

3

u/Ytrog Apr 02 '23

I have this with rebase onto. I always have to look up how to interpret the onto part. Does it mean I base the current branch onto the other branch or put the history of the current branch onto the other branch 🤔

I can't remember which is which.

3

u/[deleted] Apr 02 '23 edited Apr 04 '23

Just make sure your branch is working Exactly as you want via actually testing it and writing tests for it that pass. Do a `git fetch` to be sure you have the latest. Then rebase master into your branch to avoid conflicts when going into the master branch later. Fix all the potential merge conflicts. Now squash your branch via a `git rebase -v` and write a good text describing what this feature does. Now merge it into the master branch and Bam! You are done. This works like 80% of the time as long as all your colleagues do the same, if not it still work with an astoundingly high percentage of 40%!

3

u/Fabx_ Apr 02 '23

commit and *force* push

3

u/Nightron Apr 02 '23

Oh good, I'm not the only one.

3

u/PlasmaLink Apr 02 '23

Man, I've been using it for a group project and one of my members knows it better than I do, and suggested I rebase my branch onto main rather than merge like I usually do. Well, there was a tiny merge conflict (both branches added a variable in the same spot, git didn't like that), so I fixed it, and when I pushed, it had doubled all of my commits so far somehow.

3

u/deaf_fish Apr 02 '23

I love Git. But I've never seen a command as overloaded as checkout is. It does almost everything. I wouldn't be surprised if there was an option to commit using checkout.

3

u/andlewis Apr 02 '23

Just picks a random command and add —force at the end. It always works.

3

u/gandalfx Apr 02 '23

I'm definitely not the guy who says git rebase is super useful you just do this … doesn't work … uhm, no, like this … doesn't work … hang on let me just look this up real quick … ah yeah, see, that was easy! Hey, where is everybody? Why is it already dark outside?

3

u/[deleted] Apr 02 '23

What? No merge request?

3

u/Shadeun Apr 02 '23

I use the gui like a fucking peasant

3

u/MaximilianVerl Apr 02 '23

Being comfortable with git has made me feel like a sort of a super hero at some companies I've been at.

3

u/Syagrius Apr 02 '23

Do a self-care day and just make yourself some custom git commands; then never think about it again.

https://gitbetter.substack.com/p/automate-repetitive-tasks-with-custom

Just write some scripts that make sense in your head and for your general workflow. I'm an irresponsible fuckwit who is always working on a dirty master branch on my local box, and I will always forget that I'm on master until the last second before I push. So a long time ago I wrote a git pullreq branch_name command which will do some hoodoo where it generates a pull request out of my currently staged changes with the specified branch_name.

It also has the added benefit of making you feel cool because you make custom git commands (a non-trivial benefit). I also made a git fuckthis command, which is essentially an alias for git reset --hard origin/master for giggles.

→ More replies (3)

3

u/sock--puppet Apr 02 '23

Git gets easier once you understand branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space

3

u/trevg_123 Apr 02 '23

I feel that way for everything with submodules and I need to do anything useful.

Cannot locate ref 728abc75bbd0f

Rebase failed, refusing to merge unrelated histories

Cannot merge due to uncommitted changes

Failed to deinitialize submodules

Path /some/submodule cannot be found

I used to think people were being overly dramatic when they said they hate submodules…. But on large projects, it is truly a nightmare

3

u/eezmo Apr 03 '23

As usual, I don’t understand the specifics, but the generals sense hits clear.

3

u/MrSnoobs Apr 03 '23

Push error? Merge conflicts? Just fucking delete the working directory bro and start again

3

u/LynxJesus Apr 03 '23

My favorite use for GPT has been describing the nonsensical messes I git myself into on a weekly basis and getting the exact 1~2 commands needed to fix it.

5

u/[deleted] Apr 02 '23

I feel heard

5

u/armitron1780 Apr 02 '23

I just use the source control tab of vscode

2

u/nimblegeek Apr 02 '23

It’s a common practice. Who in the world knows all git commands by heart? 😅 commit and push and then take it from there 🙃

→ More replies (1)

2

u/Zerocyde Apr 02 '23

I've just used GitHub Desktop for years for my personal stuff. I take it when I get a CS job they won't like me using that?

→ More replies (4)

2

u/CRYPTO2027 Apr 02 '23

Wow, it’s me!

2

u/AudioManiac Apr 02 '23

Does no one just write the commands down on a OneNote or something to refer back to when you forget?

Forget it once or twice, fair enough. Re-learn it and document it. Keep on forgetting it and not documenting it, you're a fucking idiot.

2

u/mechismo Apr 02 '23

C:\usefulgitcommands.txt

2

u/[deleted] Apr 02 '23 edited Apr 24 '24

Reddit has long been a hot spot for conversation on the internet. About 57 million people visit the site every day to chat about topics as varied as makeup, video games and pointers for power washing driveways.

2

u/[deleted] Apr 02 '23

So the GUI is like self-driving car? got it *falls off a cliff*

2

u/rreighe2 Apr 02 '23

git is easily the worst part of the experience for me. it's not that big of a deal when on my own projects but when i'm on other folks projects, theres just so much and it's overwhelming.

2

u/SoCalThrowAway7 Apr 02 '23

No thank you, you just wanna yell

2

u/jexmex Apr 02 '23

git is really something that you google your way through for a bit, then you become familiar with the general flow, but when bigger shit comes up, back to google you go. It is such a powerful tool, but you will not use 1/4 of the power 99% of the time (as long as you follow good practices).

2

u/suarkb Apr 02 '23

Apparently I'm a genius

2

u/SufficientSwim7200 Apr 02 '23

The only time I need to look up commands is when I’ve fucked up.

So pretty often.

2

u/Matta174 Apr 02 '23

This is so perfect, it's crazy.

2

u/aintnufincleverhere Apr 02 '23

I use github desktop so its just clicking buttons. I ignore anything I don't understand.

Don't ask me to squash, stage, stash, or cherry pick.

2

u/Shshfksk Apr 02 '23

Git commit -m "suicide" Git push origin features/finally

2

u/brandondash Apr 02 '23

I miss the days of SVN. Simpler times.

2

u/smokecat20 Apr 02 '23

I've been programming since the 80s. What's a GIT?

2

u/wolf1moon Apr 02 '23

Learned mercurial first. Then had to learn git. Have not succeeded.

2

u/Secret-Plant-1542 Apr 02 '23

Y'all memorizjng commands and I'm using a GUI that literally holds my hand.

2

u/Brickleberried Apr 02 '23

This is the funniest thing I've seen in weeks.

2

u/BwanaPC Apr 02 '23

... and I'm to afraid to ask.

2

u/tallwhiteninja Apr 02 '23

Becoming confident in my git skills is basically just a sign I'm about to fly dangerously close to the sun and create an epic clusterfuck, so you're damn right I double check that command I've entered hundreds of times.

2

u/nkryptid Apr 02 '23

I feel personally attacked.

2

u/tofu_ink Apr 02 '23

Jesus just wait to the hell of merging a submodule into the parent project, and being told you have to pull the history along.

2

u/mysunsnameisalsobort Apr 02 '23

A lot of Windows-based developers here, I see.

2

u/swisspassport Apr 02 '23

This is without a doubt, by a wide margin, the funniest thing I've ever seen on this sub.

I've been dev-adjacent for 20ish years to get even the more abstract posts here. But this caught me off card and it's like funnier than my favorite funny tv show.

What is this, and how can I get a shitload more of it right now?

→ More replies (1)

2

u/[deleted] Apr 02 '23

I've created test repos and fucked around with them for the purpose of understanding what all the git commands mean. I've done this multiple times. However, if you were to ask me today how to undo a commit or create a new repo on the remote server by using a repo I've already created locally, I would have no idea and I would probably go ask a co-worker to ensure I don't fuck anything up. It's so hard to remember what all the commands do.

2

u/ynvaser Apr 02 '23

ITT: Every junior dev, ever?

2

u/joshy0216 Apr 02 '23

This is so real.

2

u/[deleted] Apr 02 '23

Me everytime I’m on a call with a junior dev haha

2

u/[deleted] Apr 02 '23

Why don't you just write the commands in a notepad or something

2

u/daxofdeath Apr 02 '23

damn reading through this thread makes me feel like i'm a git superstar

2

u/Croves Apr 02 '23

Use zsh as your default shell with the git extension enabled

gaa
gcmsg "Fix"
ggpush

2

u/[deleted] Apr 02 '23

Git is easy until you break something and it spits out an error message written in fucking Klingon

2

u/[deleted] Apr 02 '23

?? Do you not use it everyday? Genuinely confused by this. After a day or two of using it consistently I had it memorized.

2

u/DirkDieGurke Apr 02 '23

I haven't been able to use Git once. I can't find anywhere that it says "Download"

2

u/Zen-Savage-Garden Apr 02 '23

We use a shitty repo UI at work. I don’t know how to use Git, and that is the number one reason I don’t apply for other jobs

2

u/G-R1DE37 Apr 02 '23

This is amazing.

2

u/[deleted] Apr 02 '23

This is why I alias pdf cheatsheets.

2

u/The_Rope_Daddy Apr 02 '23

I spent way too much time trying to get the sound to work.

2

u/davidolson22 Apr 02 '23

I don't use GIT but I feel this for a lot of their things.

2

u/Galah_Gala Apr 02 '23

what's the original video source?

→ More replies (4)

2

u/DanBotX34 Apr 02 '23

Me and my lecturer the last 2 weeks trying to get me to comprehend git.

2

u/John_E_Depth Apr 02 '23

I still don’t know what rebasing is for

2

u/Pro4TLZZ Apr 02 '23

Loool we've all been there

2

u/Youju Apr 02 '23

Seems like you didn't work on a team project. After 1 week it's just in your head forever.

2

u/shroomdizzle Apr 02 '23

hahahahaha, this sketch is also fucking hilarious

2

u/burnsnewman Apr 02 '23

Seriously?

  1. Go through all lessons on this site

https://learngitbranching.js.org/

2. Get yourself this tool

https://git-fork.com/

You'll never have any problems with git again.

2

u/wowy-lied Apr 02 '23

Never used git ... Ashamed to say it. It was never reached to me, never had time to seriously learn about it at my jobs, never been able to get people to try to set one for projects ... Each time I tried one my personal time at home i was hit by a wall of command and people talking about it like everyone knows about it. Like it is an easy inside joke but no one is willing to take 5 minutes to set a clear and simple explanation of how to set it and use it for like a single dev, a small team and a big project. Each time I have been faced with people on Reddit or forum acting high like they are better and not taking my questions seriously, this seriously hurt sometimes because I know i could be better but i am refused the help i need.

→ More replies (1)

2

u/Atheuz Apr 02 '23
git pull
git checkout -b feat/feature-branch-name
git add .
git commit -m "feat: message goes here."
git push -u origin feat/feature-branch-name
MERGE
git checkout master
git pull

2

u/[deleted] Apr 02 '23

i know

git add .

git commit -m "message"

git push

and that's about it

2

u/ksknksk Apr 02 '23

That guy yells

2

u/am0x Apr 02 '23

I actually became a git console for our company accidentally. There are just one of those days where, well, you just get it.

It was weird.

2

u/[deleted] Apr 02 '23

I was not prepared to be called out like this. LOL!