:
git push <remote> [refspec]
refspec , :
git push <remote>
, git config push.default. git :
push.default "", git , .
git 2.0 git "" , , "git pull" .
:
git config --global push.default matching
"" :
git config --global push.default simple
. "origin/master" - / ( "origin" ). , , . :
git remote add origin/master <git-repository-url>
, git , :
$ git push origin/master
Counting objects: 5, done.
Writing objects: 100% (3/3), 253 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:sarxos/test.git
820474f..3706ea9 master -> master
error: unable to resolve reference refs/remotes/origin/master/master: Not a directory
error: Cannot lock the ref 'refs/remotes/origin/master/master'.
:
$ git fetch origin/master
error: unable to resolve reference refs/remotes/origin/master/master: Not a directory
From github.com:sarxos/test
! [new branch] master -> origin/master/master (unable to update local ref)
error: some local refs could not be updated; try running
'git remote prune origin/master' to remove any old, conflicting branches
.
/ ( "origin" "master" ), :
git push origin master