我在开发端执行git push origin nonexists会报错:
error: src refspec nonexists does not match any.
error: failed to push some refs to 'ssh://192.168.1.20/home/git/
demo.git'
服务器执行git status等操作也提示错误:
fatal: This operation must be run in a work tree
见一个成功的模式http://nvie.com/posts/a-successful-git-branching-model/
报错了,求解......錯誤信息如下:
error: src refspec nonexists does not match any.
error: failed to push some refs to 'ssh://192.168.1.20/home/git/
demo.git'
On 4月10日, 下午1时28分, "AleiPhoenix (A.K.A Areverie)"
To push a local branch to an established remote, you simply need to use git push REMOTENAME BRANCHNAME
If you don’t want to use the same name on the remote branch you can use git push REMOTENAME LOCALBRANCHNAME:REMOTEBRANCHNAME
.
总结一下(以下命令在开发端操作):
建立远程分支
git push origin develop
显示远程信息
git remote show origin
关于远程分支管理,推荐这篇文章
http://progit.org/book/zh/ch3-5.html