Inspired by Git aliases for PowerShell, but the aliases defined in Git aliases for PowerShell refer to Oh My Zsh Git Plugin, which is not suitable for me.
The aliases defined in this project refer to Git aliases.
First, you need to install module from PowerShell Gallery:
Install-Module -Name PSGitAlias -Scope CurrentUser -AllowClobber -Force
Then, you can import module in your PowerShell profile:
Import-Module PSGitAlias