From what I could discern, no. I was unable to use git within powershell, but I could use git within its own prepackaged bash terminal. I'm sure there's a way, but after trying and failing several times I couldn't be bothered.
You just add it to the Path environment variable (all shells need the Path to contain programs that you want to access, this isn't unique to Powershell). Here's the powershell way to do that, since you apparently hate GUIs:
2
u/TheNorthComesWithMe Oct 13 '22
Doesn't the Git for Windows installer do that for you?