alastairs
alastairs

Reputation: 6805

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'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?

Upvotes: 2

Views: 12737

Answers (1)

Andy
Andy

Reputation: 46334

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

Upvotes: 2

Related Questions