Skip to content

Instantly share code, notes, and snippets.

@oki
Created April 5, 2024 12:46
Show Gist options
  • Save oki/a1bce9901975854093a2f6863e679fe4 to your computer and use it in GitHub Desktop.
Save oki/a1bce9901975854093a2f6863e679fe4 to your computer and use it in GitHub Desktop.
[alias]
ci = commit
co = checkout
st = status
d = diff
lp = log -p
l = log --abbrev-commit
pr = pull --rebase
po = push origin
pp = push production
lsd = log --graph --full-history --all --color --pretty=tformat:%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m
rb = !git for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | column -ts'|'
cc = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
[core]
excludesfile = /Users/oki/.gitignore
[color]
branch = auto
diff = auto
status = auto
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
#whitespace = red reverse
[color "status"]
added = green
changed = red
untracked = cyan
[user]
email = x@x
name = x x
[push]
default = current
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[commit]
cleanup = scissors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment