Last active
August 21, 2019 07:17
-
-
Save JsseL/3ab081ce44700d5fa49e611eb9073de7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
amend = commit --amend | |
br = branch --sort=-committerdate | |
brd = "!f() { git branch -d $1 $2 $3 && git br; }; f" | |
brm = branch --merged | |
cm = checkout master | |
co = checkout | |
dc = diff --cached | |
fix = "!f() { git commit --fixup $1 && git rebase -i --autosquash $1~1; }; f" | |
fixa = "!f() { git commit --fixup $1 && git rebase --autosquash $1~1; }; f" | |
lg = !"git lg1" | |
lg1 = 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(bold yellow)%d%C(reset)' --all | |
lg2 = 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 yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lgo = log --oneline | |
ls = log -S | |
m = checkout master | |
namend = "!f() { git log -1 && git commit --amend --no-edit; }; f" | |
rb = rebase | |
rba = rebase --abort | |
rbc = rebase --continue | |
rbi = rebase -i | |
rbia = rebase -i --autosquash | |
rbm = rebase master | |
rsh = reset HEAD~1 | |
sl = stash list | |
sp = stash pop | |
ss = stash save | |
st = status | |
tags = "!f() { git fetch --tags && git tag --list; }; f" | |
wip = commit -m WIP | |
[user] | |
name = Jesse Laukkanen | |
email = jesse.laukkanen@anders.fi | |
[push] | |
default = current | |
[core] | |
editor = code --wait -n | |
excludesfile = ~/.gitignore | |
[rerere] | |
enabled = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment