我将push.default
设置为简单,并期望在没有明确设置上游的情况下工作。我有错误的期望还是我错过了什么?
$ git co develop
Switched to branch 'develop'
Your branch is up-to-date with 'origin/develop'.
$ git pull
Already up-to-date.
$ git co -b 'push_test'
Switched to a new branch 'push_test'
$ git push
fatal: The current branch push_test has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin push_test
$ git config --list | grep push.default
push.default=simple
$ git config --list
credential.helper=osxkeychain
alias.co=checkout
alias.st=status
user.name=Drew Arrigoni
push.default=simple
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=git@github.com:Foo/foo.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.develop.remote=origin
branch.develop.merge=refs/heads/develop
user.email=andrewarrigoni@foo.com