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.
More Related Contents:
- How do I push a new local branch to a remote Git repository and track it too?
- Remote origin already exists on ‘git push’ to a new repository
- Git – What is the difference between push.default “matching” and “simple”
- How can I push a local Git branch to a remote with a different name easily?
- What is the difference between git push origin and git push origin master
- What does ‘–set-upstream’ do?
- How can I find the location of origin/master in git, and how do I change it?
- When doing a ‘git push’, what does ‘–set-upstream’ do?
- Is there a way to cache https credentials for pushing commits?
- How do I properly force a Git push?
- Undoing a ‘git push’
- Change a Git remote HEAD to point to something besides master
- Find out which remote branch a local branch is tracking
- How to push to a non-bare Git repository?
- git push –force-with-lease vs. –force
- Can’t push to GitHub because of large file which I already deleted
- Git Push error: refusing to update checked out branch
- Git branching: master vs. origin/master vs. remotes/origin/master
- ! [rejected] master -> master (fetch first)
- Git – Checkout a remote tag when two remotes have the same tag name
- Git submodule to track remote branch
- Heroku: How to push different local Git branches to Heroku/master
- How do I change the URI (URL) for a remote Git repository?
- Making a Git push from a detached head
- Pushing from local repository to GitHub hosted remote
- fatal: does not appear to be a git repository
- git push heroku master says “Everything up-to-date”, but the app is not current
- Differences between git remote update and fetch?
- git push to remote repository “Could not read from remote repository”
- How to pull remote branch from somebody else’s repo