Skip to content

Instantly share code, notes, and snippets.

@chugcup
Created June 19, 2014 01:54
Show Gist options
  • Select an option

  • Save chugcup/75969f861c4ba07b8161 to your computer and use it in GitHub Desktop.

Select an option

Save chugcup/75969f861c4ba07b8161 to your computer and use it in GitHub Desktop.
Custom .gitconfig with hg-like shortcuts
[user]
name = NAME
email = EMAIL
[core]
editor = vim
[merge]
tool = meld
[color]
diff = auto
status = auto
branch = auto
interactive = true
[alias]
ci = commit
st = status -s
stat = status -s
out = !git fetch && git log FETCH_HEAD..`git rev-parse --abbrev-ref HEAD`
outgoing = !git fetch && git log FETCH_HEAD..`git rev-parse --abbrev-ref HEAD`
in = !git fetch && git log `git rev-parse --abbrev-ref HEAD`..FETCH_HEAD
incoming = !git fetch && git log `git rev-parse --abbrev-ref HEAD`..FETCH_HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment