Created
January 14, 2021 04:26
-
-
Save fernyb/4ac00688b74abfb994cdbeca9b5521f7 to your computer and use it in GitHub Desktop.
Set default remote for git push
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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