我无法理解以下这些错误,有人可以指出为什么我在尝试运行 github 中的 shell 脚本时会收到这些错误:pathspec 'refs/remotes/origin/master' 不匹配git Git checkout 已知的任何文件失败,退出代码:1
。
******************************************************************************
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
******************************************************************************
最佳答案
关于linux - 如何在 TFS 服务器的 linux 代理中运行 shell 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54734056/