Changing the Git remote ‘push to’ default

You can use git push -u <remote_name> <local_branch_name> to set the default upstream. See the documentation for git push for more details.

Leave a Comment