I used to work with
cmd.exe on Win 10, but recently switched to Powershell.
git clone https://github.com/user/example.git %USERPROFILE%\example
work like intended. Since
%USERPROFILE% does not work in Powershell, I use
However, when I'm for instance in
C: and enter the command
cd ~/example in Powershell, I will end up in the folder
C:\Users\JohnDoe\example (as intended).
But when I run
git clone https://github.com/user/example.git ~/example
the repo gets cloned not to my home directory, but to
Is there a way to use
~ with the git clone command in Powershell?