Skip to content

Instantly share code, notes, and snippets.

@materro
Created October 31, 2023 21:02
Show Gist options
  • Select an option

  • Save materro/74b3598ef4fab443e22423d917d5885a to your computer and use it in GitHub Desktop.

Select an option

Save materro/74b3598ef4fab443e22423d917d5885a to your computer and use it in GitHub Desktop.
Simply type `g status` instead of `git status` in Windows Powershell
function handleGit {
param (
[Parameter(
Mandatory=$true,
ValueFromRemainingArguments=$true)]
[string[]]$args
)
git $args
}
Set-Alias g handleGit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment