Skip to content

Instantly share code, notes, and snippets.

@MilanGrubnic70
Created April 2, 2015 00:21
Show Gist options
  • Save MilanGrubnic70/14e8347abd7214f61460 to your computer and use it in GitHub Desktop.
Save MilanGrubnic70/14e8347abd7214f61460 to your computer and use it in GitHub Desktop.
Aliases
Terminal shortcuts go in .bashrc in the home directory.
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias got='git '
alias get='git '
alias cl='clear'
alias tl='PS1="\w\n~>"'
Git shortcuts go in .gitconfig in the home directory.
[alias]
co = checkout
cm = commit
st = status
br = branch
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment