、
Git配置默认pull、push地址
git remote add -f origin https://github.com/simpleOrg/simpleApp.git
git config -e #能够打开配置文件,直接在打开的文件中进行修改就可以
[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
++ remote = origin
++ merge = refs/heads/master
[gui]
wmstate = normal
geometry = 835x475+264+119 185 214
[remote "origin"]
url = https://github.com/simpleOrg/simpleApp.git
fetch = +refs/heads/*:refs/remotes/origin/*
$ git push warning: push.default is unset;
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
‘matching’ 参数是 Git 1.x 的默认行为,其意是如果你执行 git push 但没有指定分支,它将 push 所有你本地的分支到远程仓库中对应匹配的分支。而 Git 2.x 默认的是 simple,意味着执行 git push 没有指定分支时,只有当前分支会被 push 到你使用 git pull 获取的代码。