I want to use git from within VSCode, using my ssh-key. My current working fix is this:
- start Powershell
- run start-ssh-agent.cmd (of git installation)
- run code
This links the ssh agent or socket to VSCode, effectively allowing me to use the key for git commands.
How can I turn this into a proper script? Or even better: How do I start and configure the ssh-agent automatically so it's globally available (similar to ssh-add on linux)?