【问题标题】:what are the steps to push changes to git from teamcity using windows agent使用 windows 代理从 teamcity 推送更改到 git 的步骤是什么
【发布时间】:2020-05-30 21:00:14
【问题描述】:

需要步骤将一个文件推送到 git 中的特定分支

git add -f %FileToCommit% 
git commit -m "Adding file via build "
git push --force origin 

但此代码提供主机密钥验证失败。错误

【问题讨论】:

    标签: windows bash github git-bash github-for-windows


    【解决方案1】:

    在运行这些命令的帐户下(我相信是 TeamCity your previous question),运行:

    ssh git@github.com
    

    并在 SSH 要求接受主机时输入“是”。

    然后再试一次,它应该不会再给你“主机密钥验证”错误了。

    【讨论】:

      猜你喜欢
      • 2013-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-06
      • 2019-09-18
      • 2020-05-29
      • 1970-01-01
      • 2012-07-22
      相关资源
      最近更新 更多