• traches@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    54
    ·
    11 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
      link
      fedilink
      arrow-up
      10
      ·
      11 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.