开发者

TortoiseGit: Push to new remote branch

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'开发者_如何学JAVAs 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜