• Caveman
    link
    fedilink
    621 hours ago

    g-push which is alias for

    git push origin `git branch --show`
    

    Which I’m writing on my phone without testing or looking

    • JackbyDev
      link
      English
      25 hours ago

      git config --global alias.pusho 'push --set-upstream origin HEAD'

      You’re welcome.

      • Caveman
        link
        fedilink
        153 minutes ago

        So that’s making git push always push to the current branch?

    • Cruxil 🇦🇺
      link
      fedilink
      English
      215 hours ago

      git push origin HEAD is a slightly shorter way of doing the same thing, even though you have an alias anyway lol