I saw this construct on a question about bash
git -C 'repo-path' pull || git clone https://server/repo-name 'repo-path'
So, if the git pull
fails, then do the git clone
, which seems quite a clean approach.
What would be an equivalent syntax for this in PowerShell?