Git sync with SSH key-pair instead of PAT

Is there a way to configure PSU to use an SSH key-pair rather than PAT for Git syncing?

Product: PowerShell Universal
Version: 5.3.3

Not at the moment. You can configure the SSH keys manually and then use the external git client and it will work but there is no way to configure it within PSU.

Thanks. I figured as much. If I use the external Git client option, and I have certain scripts that use the git add <filename> command to make sure the files generated by the script are indexed and synced, how does PSU handle that since it isn’t doing the Git directly? Does it send the command over to the external client?

If you do the git add, PSU should handle it just fine. PSU does a git add as well when you make changes. PSU just uses the current git repo status so external changes should just be picked up along with what’s happening internally.

Files stored in the repository as part of a script’s process (such as Invoke-WebRequest) don’t get picked up by PSU unless you issue git add, so if you aren’t making any changes to scripts or anything else in PSU (for PSU to trigger its own git add command), PSU remains oblivious to those new files in the repository. We’ve talked about this issue in the past, which is why the scripts now have git add in them. I’m just making sure that PSU is going to know what to do with the git commands if I’m not using its internal Git client.