【发布时间】:2019-07-11 01:21:33
【问题描述】:
我无法理解以下这些错误,有人可以指出为什么我会在尝试运行 github error: pathspec 'refs/remotes/origin/master' did not match any file(s) known to git Git checkout failed with exit code: 1 中的 shell 脚本时遇到这些错误。
******************************************************************************
Starting: Build
******************************************************************************
Current agent version: '2.105.7'
******************************************************************************
Starting: Get Sources
******************************************************************************
Syncing repository: Job (TfsGit)
git version
git config --get remote.origin.url
git config gc.auto 0
git config --get-all
http.http://54.183.83.168:8080/tfs/DefaultCollection/_git/Job.extraheader
git config --get-all http.proxy
git -c http.extraheader="AUTHORIZATION: bearer ********" fetch --tags --prune --progress origin
git checkout --progress --force refs/remotes/origin/master
error: pathspec 'refs/remotes/origin/master' did not match any file(s) known to git
Git checkout failed with exit code: 1
******************************************************************************
Finishing: Get Sources
*****************************************************************************
*
*****************************************************************************
*
Starting: Post Job Cleanup
******************************************************************************
Cleaning any cached credential from repository: Job (Git)
git remote set-url origin
http://54.183.83.168:8080/tfs/DefaultCollection/_git/Job
git remote set-url --push origin
http://54.183.83.168:8080/tfs/DefaultCollection/_git/Job
******************************************************************************
Finishing: Post Job Cleanup
******************************************************************************
******************************************************************************
Finishing: Build
******************************************************************************
【问题讨论】:
-
我无法理解以下这些错误,有人可以指出为什么我会在尝试运行 github 中的 shell 脚本时遇到这些错误“错误:pathspec 'refs/remotes/origin/master'与 git 已知的任何文件都不匹配 Git checkout failed with exit code: 1"
-
我已将您的评论添加到问题正文中,我想这对潜在的回答者来说会更清楚。
-
请分享您的构建定义 - 获取源阶段。