I am trying to port this command line from bash to PowerShell:
git verify-pack -v .git/objects/pack/pack-*.idx | grep -v chain | sort -k3nr | head
So far I have this:
git verify-pack -v (Get-ChildItem ".git/objects/pack/pack-*.idx") | select-string -pattern "chain"
But how do I do an invert match in PowerShell (option -v to grep)?
You mean -NotMatch?
Select-String -NotMatch -Pattern "chain"
Select-String @ Technet
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With