I am using powershell in windows 11 (I don't like windows, but my company uses only windows machine)
so, there is a file that is loaded whenever you start your powershell program in windows. that is $PROFILE
This file might not be present if you have newly installed windows in your machine, but the path is already defined.
Type echo $PROFILE
and it will print the path.
You can open the path in any editor of your choice, and add these lines in that file for creating the alias
Note: these are general alias that can be run from any path in powershell. you can obviously create aliases other than git