490
you are viewing a single comment's thread
view the rest of the comments
[-] backhdlp@lemmy.blahaj.zone 37 points 10 months ago* (last edited 10 months ago)

I don't understand git anyway

[-] traches@sh.itjust.works 54 points 10 months ago

Title text: If that doesn't fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of 'It's really pretty simple, just think of branches as...' and eventually you'll learn the commands that will fix everything.

[-] popcar2@programming.dev 10 points 10 months ago
  • git pull

  • git add *

  • git commit -m "Some stuff"

  • git push

And occasionally when you mess up

  • git reflog

  • git reset HEAD@{n} (where n is where you wanna roll back to)

And occasionally if you mess up so hard you give up

  • git reset --hard origin/main

And there you go. You are now a master at using git. Try not to mess up.

load more comments (10 replies)
this post was submitted on 13 Dec 2023
490 points (94.2% liked)

Programmer Humor

19386 readers
372 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS