Skip to content

Instantly share code, notes, and snippets.

@petrhosek
Created February 9, 2013 16:18
Show Gist options
  • Save petrhosek/4745873 to your computer and use it in GitHub Desktop.
Save petrhosek/4745873 to your computer and use it in GitHub Desktop.
[alias]
# commit
ca = commit -am
amend = commit --amend
# log
graph = log --graph --date=short
changes = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\" --name-status
short = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\"
changelog = log --pretty=format:\" * %s\"
# reset
unstage = reset HEAD
uncommit = reset --soft HEAD^
[branch]
autosetuprebase = always
[core]
autocrlf = false
editor = vim
[push]
default = tracking
[rerere]
enabled = true
[ui]
color = true
[user]
name = Petr Hosek
email = petrhosek@gmail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment