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 ...
![GitHub - StartAutomating/ugit: Updated Git: A powerful PowerShell wrapper for git that lets you extend git, automate multiple repos, and output git as objects.](https://programming.dev/pictrs/image/3b5d76cf-d66b-4f88-bdf2-992e5f9d8d7e.png?format=webp&thumbnail=256)
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