Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    I only needed to hcange .gitconfig, then I could use the command git pushup which always pushes the current branch to the origin. I can always just use git pushup instead of git push 👍 Commented Oct 12, 2018 at 20:52
  • 1
    just expanding on this answer to setup a global git alias (custom commands) - git config --global alias.pushup "!git push --set-upstream origin $(git symbolic-ref --short HEAD)" Commented Nov 10, 2020 at 20:50