• Redscare867
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    11 months ago

    This is why I always git push origin +branch_name

    • forgeddit@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      11 months ago

      My go-to these days is to push the current branch, dynamically.
      git push origin HEAD

      Depending on the VC, HEAD has different prefix/suffixes to make it work.

      Edit: formatting, also I never checkout master I do origin/master so I cannot even push it with this method. I think