简体   繁体   English

使用 Windows 代理将更改从 teamcity 推送到 git 的步骤是什么

[英]what are the steps to push changes to git from teamcity using windows agent

need steps to git push one file to specific branch in git需要步骤将一个文件 git 推送到 git 中的特定分支

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

but this code giving Host key verification failed.但是此代码提供主机密钥验证失败。 error错误

Under the account running those command (TeamCity is I believe your previous question ), runs:在运行这些命令的帐户下(TeamCity 是我相信你之前的问题),运行:

ssh git@github.com

And type 'yes' when SSH asks for accepting the Host.当 SSH 要求接受主机时,输入“是”。

Then try again, and it should not give you "Host key verification" error anymore.然后再试一次,它不会再给你“主机密钥验证”错误了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM