当我尝试在Github上推动我的开发分支时出现问题。实际上,我分叉了microscopejs存储库来更新一些文件......
命令:
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'
答案 0 :(得分:2)
您尚未创建本地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
步骤。