Skip to content

Instantly share code, notes, and snippets.

@jeffsharpe
Last active December 15, 2015 14:58
Show Gist options
  • Save jeffsharpe/5277907 to your computer and use it in GitHub Desktop.
Save jeffsharpe/5277907 to your computer and use it in GitHub Desktop.
Excert from .gitconfig, aliases I use for git.
[alias]
br = branch
co = checkout
ct = commit
cam = commit -a -m
dc = diff --color
fix = commit --amend -C HEAD
head = !"git log -n1"
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
master = checkout master
rb = rebase
rbc = rebase --continue
rbs = rebase --skip
rt = remote
sb = show-branch
st = status
staged = diff --staged
unstage = reset HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment