Skip to content

Instantly share code, notes, and snippets.

@joony786
Created July 18, 2023 10:58
Show Gist options
  • Save joony786/476b66bf2b86a293fd82767d19061577 to your computer and use it in GitHub Desktop.
Save joony786/476b66bf2b86a293fd82767d19061577 to your computer and use it in GitHub Desktop.
Git branch upstreams
git config --global alias.set-upstream '!git branch --set-upstream-to=origin/$(git symbolic-ref --short HEAD)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment