Skip to content

Instantly share code, notes, and snippets.

@raggleton
Last active April 29, 2021 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raggleton/ccebdb40c889047997d8d7206a5c98a8 to your computer and use it in GitHub Desktop.
Save raggleton/ccebdb40c889047997d8d7206a5c98a8 to your computer and use it in GitHub Desktop.
gitconfig, without username, etc
[color]
ui = true
[alias]
b = branch
ca = commit --amend
can = commit --amend --no-edit
co = checkout
cb = checkout -b
cp = cherry-pick
cpc = cherry-pick --continue
cpa = cherry-pick --abort
dc = diff --cached
ds = diff --stat
s = status
st = status -uno
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
hh = log --oneline --graph
p = push
pom = push origin master
pomm = push origin main
undocommit = reset --soft HEAD^
lf = log --pretty=fuller
ls = log --pretty=fuller --stat
l = log --graph --all --abbrev-commit --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(green)%ar %C(yellow)%an%C(bold yellow)%d%C(reset)%n %C( white)%s%n'
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[core]
editor = vim
[http]
emptyAuth = true
[pull]
rebase = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment