Last active
December 1, 2020 22:05
-
-
Save lucasmarqs/f73aa6e1f0d1fef0ff14e139650581e0 to your computer and use it in GitHub Desktop.
My options for ~/.gitconfig
This file contains hidden or 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
[user] | |
name = My name | |
email = [email protected] | |
[alias] | |
a = add | |
ap = add -p | |
can = commit -S --amend --no-edit | |
cm = commit -S -m | |
co = checkout | |
d = diff | |
la = "!git config -l | grep alias | cut -c 7-" | |
ls = "!git log --pretty=format:'%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]' --decorate | less -r" | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
pullr = pull --rebase | |
pf = push --force | |
rb = rebase | |
rt = reset | |
st = status | |
wip = commit -am "WIP" | |
bwip = reset HEAD~1 | |
kick = "!f() { git push origin $(git rev-parse --abbrev-ref HEAD):$1 --force; }; f" | |
coforno = "!f() { git fetch && git checkout forno && git reset --hard origin/forno; }; f" | |
[core] | |
editor = nvim | |
excludesfile = ~/.gitignore | |
pager = delta | |
; pager = diff-so-fancy | less --tabs=4 -rFX | |
[interactive] | |
diffFilter = delta --color-only | |
[pull] | |
rebase = true | |
; [url "[email protected]:"] | |
; insteadOf = https://github.com/ | |
[delta] | |
syntax-theme = base16 | |
line-numbers = true | |
; side-by-side = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment