Skip to content

Instantly share code, notes, and snippets.

@chrepl
Last active October 11, 2021 15:54
Show Gist options
  • Save chrepl/e87df78a319fa61aa68c88ced11016f7 to your computer and use it in GitHub Desktop.
Save chrepl/e87df78a319fa61aa68c88ced11016f7 to your computer and use it in GitHub Desktop.
Push branches and tags from one remote into another, without checkout
gp upstream 'refs/remotes/origin/*:refs/heads/*'
gp upstream 'refs/tags/*:refs/tags/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment