Git
FAQ
What does push.default "matching" and "simple" mean?
在 Git 2.0+ 版本中,本地分支与远端分支未关联,是 push 失败的常见的原因。命令行提示中讲得很清楚:its implicit value has changed in Git 2.0 from 'matching' to 'simple'.
...
When push.default is set to 'matching', git will push local branches to the remote branches that already exist with the same name.Since Git 2.0, Git defaults to the more conservative 'simple' behavior, which only pushes the current branch to the corresponding remote branch that 'git pull' uses to update the current branch.
Why the files just pulled from remote are "unstaged"?
SEE
- GotGit, Git权威指南
https://github.com/gotgit/gotgit/
http://www.worldhello.net/gotgithub/
by 蒋鑫