• meow
    link
    fedilink
    37
    edit-2
    11 months ago

    I don’t understand git anyway

    • @traches@sh.itjust.works
      link
      fedilink
      English
      5411 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
        link
        fedilink
        1011 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.