Last active
December 28, 2020 11:40
-
-
Save edew/02cf042f3a58a3ebe2312891c7d4ac68 to your computer and use it in GitHub Desktop.
PowerShell aliases I'm using as of December 2020
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function g { git @args } | |
function ga { git add @args } | |
function gb { g branch @args } | |
function gst { g status @args } | |
function glg { g log --oneline --decorate -n 20 @args } | |
function gp { g push @args } | |
function gl { g pull @args } | |
function gpristine { g reset --hard; if ($?) { g clean -xdf } } | |
function grb { g rebase @args } | |
function gundo { g reset HEAD~ } | |
function gfa { g fetch --all --prune } | |
function gcm { g commit -m @args } | |
function gwip { | |
git add -A | |
@deleted = git ls-files --deleted | |
git rm @deleted | |
git commit --no-verify -m "--wip-- [skip ci]" | |
} | |
function l { ls -n } | |
function dotdot { cd .. } | |
function dotdotdot { cd ../.. } | |
function dotdotdotdot { cd ../../.. } | |
set-alias -name ".." -value dotdot | |
set-alias -name "..." -value dotdotdot | |
set-alias -name "...." -value dotdotdotdot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment