Skip to content

Instantly share code, notes, and snippets.

@ducksoupdev
Last active January 19, 2017 08:31
Show Gist options
  • Select an option

  • Save ducksoupdev/b7ea9870f821717dd187a6328aca9ed9 to your computer and use it in GitHub Desktop.

Select an option

Save ducksoupdev/b7ea9870f821717dd187a6328aca9ed9 to your computer and use it in GitHub Desktop.
function git-status { git status }
function git-add { git add $args }
function git-branch { git branch $args }
function git-commit { git commit $args }
function git-diff { git diff $args }
function git-checkout { git checkout $args }
function git-log { git log --graph --pretty=format:"%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative }
function git-remote-update { git remote update }
function git-pull-rebase { git pull --rebase }
set-alias -Name gits -Value "git-status"
set-alias -Name gita -Value "git-add"
set-alias -Name gitb -Value "git-branch"
set-alias -Name gitc -Value "git-commit"
set-alias -Name gitd -Value "git-diff"
set-alias -Name gito -Value "git-checkout"
set-alias -Name gitl -Value "git-log"
set-alias -Name gitr -Value "git-remote-update"
set-alias -Name gitp -Value "git-pull-rebase"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment