Victoria's Neofeed
  • 2020-09-13 09:48:24 +0000 UTC
    Victoria Drake

    Victoria Drake

    Sep 13, 2020

    Setting up a new remote branch? Use git push -u origin HEAD to automatically push the current branch to a new remote branch with the same name.

    Annoyingly, git push doesn’t automatically set the upstream branch.

    https://git-scm.com/docs/git-push#Documentation/git-push.txt–u

    fatal: The current branch <branch name> has no upstream branch.
    To push the current branch and set the remote as upstream, use
    
        git push --set-upstream origin <branch name>
    
    2020-09-13 09:48:24 +0000 UTC 1429 days ago
    webmention this