Skip to content

Instantly share code, notes, and snippets.

@gotar
Created November 5, 2013 08:38
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gotar/7315694 to your computer and use it in GitHub Desktop.
My ~/.gitconfig
[user]
name = Oskar Szrajer
email = oskarszrajer@gmail.com
[alias]
br = branch
co = checkout
ci = commit
df = diff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgp = log -p
st = status -sb
sts = status --short
today = log --author="Oskar" --since="6am"
standup = log --oneline --since yesterday --author="Oskar"
deploy-log = log --oneline --pretty=format:'- %h %an: %s (%ad)'
purr = pull --rebase
rename = commit --amend -m
fix = "!_() { c=$(git rev-parse $1) && git commit --fixup $c && if grep -qv \"No local changes\" <<<$(git stash); then s=1; fi; git -c core.editor=cat rebase -i --autosquash $c~; if [[ -n "$s" ]]; then git stash pop; fi; }; _"
[color]
branch = auto
diff = auto
status = auto
ui = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment