Skip to content

Instantly share code, notes, and snippets.

@wmfairuz
Created February 23, 2015 23:42
Show Gist options
  • Save wmfairuz/7c9abf7a9b7922509c62 to your computer and use it in GitHub Desktop.
Save wmfairuz/7c9abf7a9b7922509c62 to your computer and use it in GitHub Desktop.
sample git config
[user]
name = Fairuz Wan Ismail
email = fairuz.ismail@maylab.my
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit
lg2 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -10
d = diff
dc = diff --cached
a = add
g = grep --break --heading --line-number
st = status
ci = commit -s -m
br = branch
co = checkout
df = diff
lgp = log -p
rb = rebase -i
pullsrb = !git stash save && git pull --rebase origin dev && git stash pop && echo 'Success!'
amend = commit --amend
stm = status --untracked=no
b = branch
ba = branch -a
pushc = push origin HEAD:refs/for/dev
ft = fetch -av
[core]
autocrlf = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment