TortoiseGit: Push to new remote branch

11,932

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

Share:
11,932
alastairs
Author by

alastairs

I'm a software engineer working out of Cambridge, UK. I work mostly with C#, and my main computing interests lie in distributed systems.

Updated on August 04, 2022

Comments

  • alastairs
    alastairs over 1 year

    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?