Last active
September 1, 2020 07:29
-
-
Save camiloaa/432040eaa45a18a7e323c4258887b6f0 to your computer and use it in GitHub Desktop.
My git aliases and tweaks
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] | |
add-mod = !git add $(git status -uno -s | awk '{ print $2 }') && git status -uno -s | |
amend = commit --amend | |
ci = commit | |
co = checkout | |
di = diff | |
fix = fixup | |
st = status -s | |
meld = difftool -t meld | |
kdiff3 = difftool -t kdiff3 | |
dlog = log --color --pretty=format:\"%C(yellow)%h%Creset %ci %C(white)%s%Creset\" | |
last = log -1 --name-status --color --pretty=format:\"%C(yellow)%h%Creset %ci %C(white)%s%Creset\" | |
last5 = log -5 --name-status --color --pretty=format:\"%C(yellow)%h%Creset %ci %C(white)%s%Creset\" | |
last10 = log -10 --color --pretty=format:\"%C(yellow)%h%Creset %ci %C(white)%s%Creset\" | |
oneline = log --oneline | |
tree = log --oneline --decorate --graph --all | |
full-tree = !git log --oneline --decorate --graph --all $(git rev-list -g --all) | |
cp = cherry-pick | |
[diff] | |
tool = meld | |
guitool = vimdiff | |
[merge] | |
tool = mymeld | |
guitool = vimdiff | |
[mergetool "mymeld"] | |
cmd = meld "$LOCAL" "$MERGED" "$REMOTE" | |
[mergetool "vscode"] | |
cmd = code --wait $MERGED | |
[difftool "vscode"] | |
cmd = code --wait --diff $LOCAL $REMOTE | |
[difftool] | |
prompt = false | |
[push] | |
default = simple | |
[column] | |
ui = auto | |
[color] | |
status = auto | |
diff = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
pager = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment