Skip to content

Instantly share code, notes, and snippets.

@libotti
Created June 13, 2020 21:56
Show Gist options
  • Save libotti/1fda8d17a2dbe65378ebca66a78c2e80 to your computer and use it in GitHub Desktop.
Save libotti/1fda8d17a2dbe65378ebca66a78c2e80 to your computer and use it in GitHub Desktop.
[user]
name = Robert Libotti
email = [email protected]
[core]
editor = code
excludesfile = ~/.gitignore_global
[push]
default = current
[pull]
default = current
rebase = true
[branch]
autosetuprebase = always
[commit]
template = ~/.gitmessage
[color]
ui = true
[color "status"]
added = green
changed = yellow
untracked = red
[color "branch"]
current = white
remote = red
[color "diff"]
meta = yellow
old = red
new = green
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
unstage = reset HEAD --
undo = checkout --
rollback = reset --soft HEAD~1
rollforward = commit -c ORIG_HEAD
conflicts = !git ls-files -u | cut -f 2 | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment