Skip to content

Instantly share code, notes, and snippets.

@lucasmarqs
Last active December 1, 2020 22:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasmarqs/f73aa6e1f0d1fef0ff14e139650581e0 to your computer and use it in GitHub Desktop.
Save lucasmarqs/f73aa6e1f0d1fef0ff14e139650581e0 to your computer and use it in GitHub Desktop.
My options for ~/.gitconfig
[user]
name = My name
email = my_github_email@example.com
[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 "git@github.com:"]
; 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