rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
11.04k stars 545 forks source link

Docs assume windows batch file syntax #419

Open stevebroshar opened 3 years ago

stevebroshar commented 3 years ago

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.

jonlabelle commented 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.