https://github.com/codyduong/powershell-git-aliases-plus
:octocat: Oh My Zsh's Git aliases for PowerShell.
https://github.com/codyduong/powershell-git-aliases-plus
alias aliases git oh-my-posh oh-my-zsh posh powershell
Last synced: 21 days ago
JSON representation
:octocat: Oh My Zsh's Git aliases for PowerShell.
- Host: GitHub
- URL: https://github.com/codyduong/powershell-git-aliases-plus
- Owner: codyduong
- License: mit
- Created: 2023-03-27T21:25:55.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T02:45:58.000Z (about 1 year ago)
- Last Synced: 2025-11-03T20:37:50.948Z (5 months ago)
- Topics: alias, aliases, git, oh-my-posh, oh-my-zsh, posh, powershell
- Language: PowerShell
- Homepage: https://www.powershellgallery.com/packages/git-aliases-plus/
- Size: 102 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!IMPORTANT]
> This is a fork of [`gluons/powershell-git-aliases`](https://github.com/gluons/powershell-git-aliases), which lacked regular maintenance.
>
> It also tries to be closer to functionality/behavior as the oh-my-zsh git plugin.
>
> But it has received some updates[1](#upstream) which were merged into this fork.
# Git aliases for PowerShell
[](./LICENSE)
[](https://www.powershellgallery.com/packages/git-aliases-plus/)
[](https://www.powershellgallery.com/packages/git-aliases-plus/)
A [PowerShell](https://microsoft.com/powershell) module that provide partial **[Git](https://git-scm.com/)** aliases from [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh)'s [git plugin](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/git/).
> ℹ️ This module will replace some built-in PowerShell aliases with our Git aliases to **prevent** [conflict](https://github.com/gluons/powershell-git-aliases/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Aconflict).
__1__: Merged [`007452c^..466070f`](https://github.com/gluons/powershell-git-aliases/commits/master/) in [`4adf9d8`](https://github.com/codyduong/powershell-git-aliases-plus/commit/4adf9d873fcb206429501448f3b026e149b8a753)
## ⚙️ Installation
Install from [PowerShell Gallery](https://www.powershellgallery.com/packages/git-aliases-plus/)
```powershell
Install-Module git-aliases-plus -Scope CurrentUser -AllowClobber
```
---
⚠️ If you haven't allowed script execution policy, set your script execution policy to `RemoteSigned` or `Unrestricted` .
```powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
```
## 🛂 Usage
You have to import the module to use `git-aliases-plus` .
Add below command into your PowerShell profile.
```powershell
Import-Module git-aliases-plus -DisableNameChecking
```
Then restart your PowerShell.
Now you can use Git aliases.
## 🔧 Integrations
### posh-git
Supports autocompletion within [posh-git](https://github.com/dahlbyk/posh-git)
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
```powershell
Import-Module git-aliases-plus -DisableNameChecking
Import-Module Posh-Git -arg 0,0,1
```
### thefuck
This repository provides a custom [thefuck](https://github.com/nvbn/thefuck) rule which can be used to allow `fuck`
to work with some aliased commands.
Copy [git-aliases.py](./integrations/thefuck/rules/git-aliases.py) from [integrations/thefuck/rules](./integrations/thefuck/)
into `$HOME/.config/thefuck/rules`.