The default action of git push
and git push origin
has changed since git
version 1.7.11
:
Before
1.7.11
,git push
by default pushes all branches that also exist remotely with the same name.Since
1.7.11
,git push
by default pushes the current branch to a remote branch with the same name.
Before and after version 1.7.11
, the default behavior can be configured with the push.default
configuration option. This configuration option has been introduced in git
version 1.6.3
.
Related Contents:
- How do I delete a Git branch locally and remotely?
- 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
- What does ‘–set-upstream’ do?
- Git – What is the difference between push.default “matching” and “simple”
- Changing the Git remote ‘push to’ default
- How can I push a local Git branch to a remote with a different name easily?
- How can I find the location of origin/master in git, and how do I change it?
- Git push branch from one remote to another?
- error: src refspec master does not match any
- How to convert a readonly git clone from github to a forked one
- Git push to live server
- When doing a ‘git push’, what does ‘–set-upstream’ do?
- git push to remote branch
- How to determine the URL that a local Git repository was originally cloned from
- How do you push a tag to a remote repository using Git?
- Is there a way to cache https credentials for pushing commits?
- How do I properly force a Git push?
- Git push error ‘[remote rejected] master -> master (branch is currently checked out)’
- Undoing a ‘git push’
- Git Push ERROR: Repository not found
- git push –force-with-lease vs. –force
- How do I avoid the specification of the username and password at every git push?
- How to pull remote branch from somebody else’s repo
- Git Push error: refusing to update checked out branch
- Git: which is the default configured remote for branch?
- Why does Git tell me “No such remote ‘origin'” when I try to push to origin?
- How do I fix “remote: fatal error in commit_refs” errors trying to push with Git?
- How to update a git clone –mirror?
- Issue pushing new code in Github
- Change a Git remote HEAD to point to something besides master
- Cannot push to Heroku because key fingerprint
- How can I recover from an erronous git push -f origin master?
- git delete remotes: remote refs do not exist
- How can I automatically push after committing in Git?
- Git says local branch is behind remote branch, but it’s not
- What is the difference between ‘origin’ and ‘remote’ in git commands? [duplicate]
- git@github.com: Permission denied (publickey)
- Git add a worktree from existing remote branch
- git push >> fatal: no configured push destination
- GitHub – error: failed to push some refs to ‘git@github.com:myrepo.git’
- git push fatal: unable to create thread: Resource temporarily unavailable
- Git prevents pushing after amending a commit
- Git error: src refspec master does not match any error: failed to push some refs [duplicate]
- Push branches to Git
- Git – Checkout a remote tag when two remotes have the same tag name
- Merge two remote branches in a Git repository
- What are the consequences of using receive.denyCurrentBranch in Git?
- Why is `git push –force-with-lease` failing with “rejected … stale info” even when my local repo is up to date with remote?
- How can I overwrite or replace a commit with new one once I have pushed to remote?