A PowerShell module that provide partial Git aliases from Oh My Zsh's git plugin.
ℹ️ This module will replace some built-in PowerShell aliases with our Git aliases to prevent conflict.
Install from PowerShell Gallery
Install-Module git-aliases -Scope CurrentUser -AllowClobberOr from Scoop
scoop bucket add extras
scoop install git-aliasesRemoteSigned or Unrestricted.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserYou have to import the module to use git-aliases.
Add below command into your PowerShell profile.
Import-Module git-aliases -DisableNameCheckingThen restart your PowerShell. Now you can use Git aliases.
New-Item -ItemType File $profileSee aliases.md for the full list of available aliases and what each one does.
You can also inspect them from PowerShell with Get-Git-Aliases.
Prints the definition of every Git alias in the module, or the definition of a single alias.
| Parameter | Type | Description |
|---|---|---|
-Alias |
String |
Optional. Name of the alias to inspect (e.g. gst). When omitted, all aliases are listed in a table. |
Show all aliases:
Get-Git-AliasesShow the definition of a single alias:
Get-Git-Aliases -Alias gstThe output is the alias' function body, so it shows exactly which git command the alias runs:
git status $argsPassing an unknown alias name throws an error.