I have a strange problem with tortoise git at the moment, which I can't figure out. When trying to commit to my repository on github I get the error
ERROR: Permission to martindevans/Hermes.git denied to key2
C:\Users\Martin\Documents\Visual Studio 2010\Projects\Hermes>git push
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
There are different private key formats. My keypair was generated with puttygen, but my Tortoise was configured to use ssh.exe (form msysgit) as ssh-client. So i changed it to plink (from Tortoise) and it worked.
Additional note: Use the correct URL! Github offers you three URL https, git and ssh.
I adapted the settings here:
Settings - TortoiseGit >> Network >> SSH-Client C:\Program Files\TortoiseGit\bin\TortoisePLink.exe
I have generated the key-pair with: