Background: I'm using git and TortoiseGit with github.com. My development cycle on the .git local branch goes like this:
1) Make whatever changes
2) Right-click on directory, choose "Git Commit -> branch"
3) Input the message and commit
4) Right-click on same directory, choose "Git Push"
5) I choose my options and...
The first time each time I do this each day, Pageant auto-loads in the background and its icon appears in the system tray. But, it is not remembering the private.ppk I had previously loaded the day (or reboot) before.
Each time I have to:
Right-click -> "Add key" -> and then redo 4) and 5) above
and then it works. I have created a manual icon/shortcut I can click which auto-loads:
"C:\Program Files\TortoiseGit\bin\pageant.exe" c:\path\to\private.ppk
And if I launch with that shortcut, it loads the key into memory and works fine.
Question: How can I get TortoiseGit to remember or pass that "c:\path\to\private.ppk" parameter to pageant so when it auto-loads that first time it also auto-loads my private key?
Is there a persistent setting I can use?
Thanks in advance! :-)
By default, TortoiseGit uses the Windows home directory which is normally located under c:\Users and MSYS2 uses its own home directories which are located under [MSYS2-INSTALL-PATH]\home .
Right-Click in the File explorer within the repository and select TortoiseGit =>Create Branch. Name it enhancement and select the checkbox Switch to the new branch. Click Ok. Make a change to the file in the enhancement branch and commit the same.
You can open it using TortoiseGit → Repo-browser or from the log dialog (cf. the section called “Log Dialog”) using the context menu of a commit.
14.0 of TortoiseGit, which is the latest. The TortoiseGit Git.exe Path setting currently points to C:\Program Files\Git\cmd .
I just place a shortcut to pageant.exe with my PPK in my Start Menu "Startup" folder, so that it loads automatically when Windows boots (although it asks for the password then too).
"C:\Program Files\TortoiseGit\bin\pageant.exe" "D:\Dev\Git Private Key.ppk"
All done very quick and easy if you know the right places:
Or simply manually add a "puttykeyfile" entry in the regarding "some_project\.git\config" file:
[remote "origin"]
url = [email protected]:some_one/some_project.git
fetch = +refs/heads/*:refs/remotes/origin/*
puttykeyfile = C:\\Users\\some_one\\.ssh\\[email protected]\\id_rsa.ppk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With