ugit - PowerShell Wrapper for Git
ugit - PowerShell Wrapper for Git
github.com GitHub - StartAutomating/ugit: Updated Git: A powerful PowerShell wrapper for git that lets you extend git, automate multiple repos, and output git as objects.
Updated Git: A powerful PowerShell wrapper for git that lets you extend git, automate multiple repos, and output git as objects. - GitHub - StartAutomating/ugit: Updated Git: A powerful PowerShell ...

This is a pretty neat tool that allows you to use regular git commands, but captures the output as a PowerShell objects. This allows you to use the power of PowerShell pipelines to enhance your git experience.
A couple of examples:
# Count logs by author
git log |
Group-Object GitUserEmail -NoElement |
Sort-Object Count -Descending
# Delete all branches except the current and main
git branch |
Where-Object -Not IsCurrentBranch |
Where-Object BranchName -NotIn 'main', 'master' |
git branch -d
0
comments