繁体   English   中英

如何在Github上推进我的开发部门

[英]How to push on my development branch on Github

当我尝试在Github上进行开发时遇到问题。 实际上,我分叉了oscopesjs存储库来更新一些文件...

命令:

git clone https://github.com/tonymx227/microscopejs.git
git add remote upstream https://github.com/tonymx227/microscopejs.git
git fetch upstream
// I updated some files using Sublime Text 2 here
git add . -A
git commit -m 'test'
git push origin development

问题 :

error: src refspec development does not match any.
error: failed to push some refs to 'https://github.com/tonymx227/microscopejs.git'

您尚未创建本地development分支。

克隆后,只有远程跟踪分支的origin/development

首先执行:

git checkout -b development origin/development

然后:

git add . -A
git commit -m 'test'
git push -u origin development

注意:您不需要git remote add upstream步骤。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM