Skip to content

Instantly share code, notes, and snippets.

@decrn
Created October 26, 2018 08:24
Show Gist options
  • Save decrn/a38c8c91ad589fd90cbe8f97e4d81af4 to your computer and use it in GitHub Desktop.
Save decrn/a38c8c91ad589fd90cbe8f97e4d81af4 to your computer and use it in GitHub Desktop.
[alias]
lg = !"git lg1"
lg1 = !"git lg1s --all"
lg2 = !"git lg2s --all"
lg3 = !"git lg3s --all"
lg4 = !"git lg4s --all"
lg1s = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lg3s = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
lg2s = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg4s = log --graph --all --date=local --name-status --format=format:'%C(cyan)%h%C(reset) - %C(red)%d%C(reset) - %C(white)(%ai)%C(reset) %C(white dim)%s%C(reset) %C(white) -- %an%C(reset)' --abbrev-commit --color
f = !git fetch || echo "Gretchen, stop trying to make fetch happen\\!"
st = status --short
stb = status --short --branch
sti = status --short --branch --ignored
cm = commit -m
co = checkout
br = branch
brD = branch -D
brd = branch -d
df = diff
dc = diff --cached
dn = diff --name-only
dw = diff --color-words
sq = merge --squash
cob = checkout -b
cma = commit -a -m
p = push
pf = push --force-with-lease
sh = show --oneline
shc = show --compact-summary
# file history
fh = log --stat --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment