TortoiseGit:推送到新的远程分支
我已经建立了一个使用 TeamCity 和 Git 的项目,并且我想使用 TeamCity 的新 分支远程运行功能。这项工作的方式是将您的工作目录推送到 TeamCity 构建正在监视的远程分支,例如:
git push origin +HEAD:remote-run/my_feature
我认为这说的是“将 HEAD
推送到远程在 origin
存储库中创建 remote-run/my_feature
分支,必要时创建它”(如果有一点不正确,我欢迎澄清)。
我的问题是我正在使用 TortoiseGit 并将 MSysGit 设置为使用 PuTTY。这工作正常,但这意味着我无法进入 Git Bash 并通过命令行发出命令,因为 Git Bash 依赖于 OpenSSH。我不准备重新安装 MSysGit (也可能重新安装 TortoiseGit)。
那么,让 TortoiseGit 运行上述推送的神奇复选框和文本框集是什么呢?
I've set up a project to use TeamCity and Git, and I'd like to use TeamCity's new Branch Remote Run feature. The way this work is to push your working directory to a remote branch that the TeamCity build is watching, e.g.:
git push origin +HEAD:remote-run/my_feature
What I think this is saying is "push HEAD
to the remote branch remote-run/my_feature
in the origin
repository, creating it if necessary" (I would welcome clarification if that's even slightly incorrect).
My problem is that I'm using TortoiseGit with MSysGit set up to use PuTTY. This is working fine, but it means I can't drop into Git Bash and issue the command through the command-line as Git Bash relies on OpenSSH. I'm not up for re-installing MSysGit (and potentially TortoiseGit too).
So, what's the magical set of checkboxes and textboxes to get TortoiseGit to run a push as described above?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先确保 pageant 正在运行并且已加载密钥...然后您可以设置 Windows 环境变量
GIT_SSH
指向 plink.exe,msysgit 将使用 pageant。 演练链接First make sure pageant is running and has your key loaded... Then you can set the windows env variable
GIT_SSH
to point to plink.exe and msysgit will use pageant. Link to walkthrough