Skip to content

Instantly share code, notes, and snippets.

@fernyb
Created January 14, 2021 04:26
Show Gist options
  • Save fernyb/4ac00688b74abfb994cdbeca9b5521f7 to your computer and use it in GitHub Desktop.
Save fernyb/4ac00688b74abfb994cdbeca9b5521f7 to your computer and use it in GitHub Desktop.
Set default remote for git push
# Set the default remote
git push -u <remote_name> <local_branch_name>
# Do git push to push to the default remote from above
git push
# To push to a differente remote other than the default
git push <new_remote_name> <branch_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment