Skip to content

Instantly share code, notes, and snippets.

@madrobby
Created September 15, 2012 13:44
Show Gist options
  • Save madrobby/3727975 to your computer and use it in GitHub Desktop.
Save madrobby/3727975 to your computer and use it in GitHub Desktop.
$ git push
fatal: The current branch render-performance has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin render-performance

So why doesn't git have a shorthand command for that? This is likely what you want to do anyway.

@arthurschreiber
Copy link

git push -u origin HEAD if you're on the render-performance branch is the shortest I can think of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment