0
不同的行为在Windows上我平时的工作流程是:Git:错误src refspec不匹配任何;在Windows和Linux
git init
git pull https://<repo_address> "branch_name"
git commit --all -m"message"
git push https://<repo_address> "branch_name"
执行所有分支的测试后,合并掌握,让我们说
git checkout master
或只是cd到另一个目录和合并
git pull https://<repo_address> "branch_name"
在Windows上,它完美的工作。然而,当我移植我的应用程序到Linux,令人惊讶的我就死在推着我的分支
git init
git pull https://<repo_address> "branch_name"
git commit --all -m"message"
git push https://<repo_address> "branch_name"
获得知名错误
error: src refspec branch_name does not match any.
error: failed to push some refs to 'https://<repo_address>'
我发现一对夫妇的解决方案,但没有适合我。不知道原因是操作系统,也许只是不同的版本或其他。
在Linux Git版本2.1.4