Open stevebroshar opened 3 years ago
Just break the commands into two lines for the same result in PowerShell, e.g.:
git reflog expire --expire=now --all
git gc --prune=now --aggressive
You could simply replace &&
with ;
(semicolon) in PowerShell, but second command would execute regardless if the first command returns a non-zero/error exit code.
Both the page https://rtyley.github.io/bfg-repo-cleaner/ and the tool itself mention the following command:
git reflog expire --expire=now --all && git gc --prune=now --aggressive
But "&&" is windows batch syntax; does not work in powershell. I'm not a linux expert, but I wonder whether it work there either.