A fork of powershell-git-aliases
that adds all missing aliases, see: gluons/powershell-git-aliases#32, gluons/powershell-git-aliases#38, ...and more.
It also adds an support for a thefuck rule to allow fuck
to work on aliased commands
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-plus -Scope CurrentUser -AllowClobber
RemoteSigned
or Unrestricted
.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
You have to import the module to use git-aliases
.
Add below command into your PowerShell profile.
Import-Module git-aliases-plus -DisableNameChecking
Then restart your PowerShell.
Now you can use Git aliases.
If you want to enable tab completion enable posh-git's autocompletion for aliases. Be aware that if you do want tab completion this way, posh-git MUST be imported after git-aliases-plus
Import-Module git-aliases-plus -DisableNameChecking
Import-Module Posh-Git -arg 0,0,1
If you would like your aliases to still be corrected with the fuck
command,
copy git-aliases.py from integrations/thefuck/rules
into $HOME/.config/thefuck/rules
.