• OpenStars@startrek.website
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    I have only ever used simply “git push”. I feel like this is a “how to say that you barely know how to use git without saying that you barely know how to use git” moment:-D.

    • synae[he/him]@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 months ago

      Normal distribution curve meme makes sense here - experts and noobs can both git push safely (but for different reasons)

      • OpenStars@startrek.website
        link
        fedilink
        English
        arrow-up
        0
        ·
        4 months ago

        I can follow along re-typing the same commands told to me by a more senior dev just like any average monkey!

        This reminds me of something I made a long time ago: img

        Since I am calling myself dumb, I estimate my progress to be somewhere perhaps at the 20th percentile marker? :-D One of these days I’ll RTFM and rocket all the way up to be dumb enough to properly qualify for “below average”! :-P

      • body_by_make@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        4 months ago

        You can default git to using your current branch and a specific upstream so you don’t have to put anything after git push

      • PoolloverNathan@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        The first time you manually push like that, you can add the -u flag (git push -u origin master) to push and set the branch’s default upstream. Afterwards, a plain git push while that branch is checked out will push the branch to that default upstream. This is per-branch, so you can have a main branch that pulls from one repository and a patch branch that pulls and pushes to a different repository.

        • blind3rdeye@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          4 months ago

          My strategy is to just type git push and get some kind of error message about upstream not being set or something. That’s a signal for me to take a second to think about what I’m actually doing and type the correct command.