我已经从远程主服务器创建了一个远程分支。创建分支后,将更改提交到远程 master。如何将远程分支变基到远程主控以获取这些更改?这是远程分支:
$ git branch -r
origin/HEAD -> origin/master
origin/features/myFeature
origin/master
这是我尝试过的:
git checkout origin/features/myFeature
git rebase master
git push origin origin/features/myFeature
这是我收到的错误消息:
git push origin origin/features/myFeature
Total 0 (delta 0), reused 0 (delta 0)
remote: Processing changes: refs: 1, done
To ssh://serverURL:port/path/to/repo
! [remote rejected] origin/features/myFeature -> origin/features/myFeature (can not create new references)
error: failed to push some refs to 'ssh://serverURL:port/path/to/repo'
谢谢