我在这里迷路了我不太了解git是否一直在关注在线教程,结果就是这个错误消息。当我推。我一直在浏览其他帖子,但似乎无法应用他们的解决方案。
我认为应该注意的是,我已经克隆了存储库,现在正尝试在两个存储库之间设置自动同步。
这是我一直在关注的教程https://blogs.microsoft.co.il/leonj/2017/01/24/synchronizing-tfs-2015-and-vsts-with-github/#GITHUB_TFS 不同的是我的 TFS 服务器是 2017 年的,而 git 是我试图与之同步的 bitbucket git 存储库。
首先我从
git pull https://$(bitbucketcredentials)@bitbucket.org/path/to/git.git master
然后我尝试使用我的 tfs 的以下响应推送:
git push http://tfsserver:8181/tfs/aCollection/_git/repo/_git/TFSTeamsMigratorTool master:master
2018-07-20T07:27:58.2617421Z error: src refspec master does not match any.
2018-07-20T07:27:58.2617421Z error: failed to push some refs to 'http://tfsserver:8181/tfs/aCollection/_git/repo/_git/TFSTeamsMigratorTool'
2018-07-20T07:27:58.3400564Z ##[error]Process completed with exit code 1.