• DreamButt@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 day ago

    Basic workflow that got me through the learning pains.

    If I just sat down:

    • git checkout develop or whatever ur main branch is
    • git pull origin

    If I’m working on a new branch:

    (If not already on the new branch)

    • git branch -b feature/123-ticket-name

    (After making some changes)

    • git add .
    • git commit
    • git push

    Git will prompt you the first time you git push, just follow the instructions.

    And of course there’s tons more you could learn or dive into. But that should give you a stable foundation to start working from

    • NocturnalMorning@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      You’d be surprised how many people use git without knowing even the basics.

      I’ve had a surpising amount of coworkers who have come to me for an issue that I literally googled for them to just give them the answer.