我将远程分支克隆到本地,
$git clone -b my_branch REMOTE_REPO
进行了一些更改,然后将推回远程分支。
$git push origin master:my_branch
但是推送被拒绝了:
Counting objects: 30, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (16/16), 4.15 KiB, done.
Total 16 (delta 8), reused 7 (delta 4)
remote: Resolving deltas: 100% (8/8)
remote: Processing changes: done
To ssh://user@gerrit.foo.net:29418/foo.git
! [remote rejected] my_branch -> my_branch (non-fast forward)
error: failed to push some refs to 'ssh://user@gerrit.foo.net:29418/foo.git'
那么有什么问题呢?