89 lines
2.6 KiB
INI
89 lines
2.6 KiB
INI
[user]
|
|
name = Maxence G. de Montauzan
|
|
email = maxence@gdemontauzan.fr
|
|
|
|
[color]
|
|
diff = auto
|
|
status = auto
|
|
branch = auto
|
|
|
|
[alias]
|
|
alias = config --get-regexp alias
|
|
|
|
st = status
|
|
ci = commit
|
|
co = checkout
|
|
cp = cherry-pick
|
|
br = branch
|
|
lg = log --oneline --graph --decorate # oneline = "--pretty=oneline --abbrev-commit"
|
|
lga = log --oneline --graph --decorate --all
|
|
unstage = reset HEAD
|
|
reinit = reset --hard HEAD
|
|
pr = pull --rebase
|
|
diffc = diff --cached
|
|
amend = commit --amend
|
|
undo = reset --soft HEAD^
|
|
undoh = reset --hard HEAD^
|
|
who = shortlog -nse
|
|
|
|
sts = status -sb
|
|
dc = diff --cached
|
|
ls = log --pretty=format:'%C(yellow)%h %C(cyan)%ar%C(red)%d %C(reset)%s %C(green)[%cN] %C(blue)(%ad)%C(reset)' --decorate --date=short --graph # pretty one-line log with tags, branches and authors
|
|
lsa = log --pretty=format:'%C(yellow)%h %C(cyan)%ar%C(red)%d %C(reset)%s %C(green)[%cN] %C(blue)(%ad)%C(reset)' --decorate --date=short --all --graph # pretty one-line log with tags, branches and authors
|
|
lsv = log --pretty=format:'%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cN]%C(reset)' --decorate --date=short --numstat # a verbose ls, shows changed files too
|
|
|
|
force = push --force-with-lease
|
|
fetcha = fetch --all
|
|
rprune = remote prune
|
|
fix = commit --no-edit --amend
|
|
# https://blog.oddbit.com/post/2016-02-19-a-collection-of-git-tips/
|
|
|
|
last = log -1 --oneline --pretty=format:'%C(yellow)%h%C(auto)%d %C(reset)%s -- %C(cyan)%ar %Cgreen%aN%C(reset)'
|
|
last-changed = show --name-only --oneline
|
|
com = commit -m
|
|
branchv = branch -vv
|
|
|
|
# Not really used
|
|
graphlog = log --graph --abbrev-commit --decorate --date=relative --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
|
|
# fup = log --since '1 day ago' --oneline --author <YOUR_EMAIL> # I know what you did yesterday - great for follow-ups
|
|
list-file = log --pretty=format: --name-only --diff-filter=A
|
|
stat = diff --stat # Show diff stats with a branch
|
|
|
|
# difft
|
|
dlog = -c diff.external='difft' log --ext-diff
|
|
dshow = -c diff.external='difft' show --ext-diff
|
|
ddiff = -c diff.external='difft' diff
|
|
|
|
[core]
|
|
editor = vim
|
|
excludesfile = ~/.gitignore-global
|
|
pager = less -eRXF
|
|
autocrlf = input
|
|
|
|
[help]
|
|
autocorrect = 1
|
|
|
|
[push]
|
|
default = current
|
|
|
|
[rebase]
|
|
autoSquash = true
|
|
|
|
[filter "lfs"]
|
|
clean = git-lfs clean -- %f
|
|
smudge = git-lfs smudge -- %f
|
|
process = git-lfs filter-process
|
|
required = true
|
|
|
|
[init]
|
|
defaultBranch = main
|
|
|
|
[ghq]
|
|
root = ~/workspace/ghq
|
|
|
|
[stgit "alias"]
|
|
r = refresh
|
|
s = series
|
|
sr = series -r
|
|
stack = series -rOP
|