Skip to content

Instantly share code, notes, and snippets.

@Maddosaurus
Created August 27, 2018 20:18
Show Gist options
  • Save Maddosaurus/1738852f53365119ccdb84be6b7de996 to your computer and use it in GitHub Desktop.
Save Maddosaurus/1738852f53365119ccdb84be6b7de996 to your computer and use it in GitHub Desktop.
Windows Powershell ZSH Style Aliases
function gitc {
git commit --verbose
}
function gita {
git add
};Set-Alias ga gita
function gitaa {
git add --all
};Set-Alias gaa gitaa
function gitcb($branch) {
git checkout -b $branch
};Set-Alias gcb gitcb
function gitcm {
git checkout master
}
function gitd {
git diff
};Set-Alias gd gitd
function gitlola {
git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %b %Cgreen(%cd) %C(bold blue)<%an>%Creset" --all
};Set-Alias glola gitlola
function gitst {
git status
};Set-Alias gst gitst
function gitl {
git pull
}
function gitp {
git push
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment