configs/.gitconfig

36 lines
1.4 KiB
INI

[core]
editor = vim
[alias]
s = status
ss = status -s
sb = status -s -b
sx = status -s -uall --ignored
l = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate HEAD
lb = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate --branches
lr = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate --remotes
lt = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate --tags
ll = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --branches --remotes --tags --decorate
llns = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar)\" --graph --branches --remotes --tags --decorate
lg = log --pretty=format:\"%C(auto) %d : %h (%G?) - %an. %ar : %s\" --graph --branches --remotes --tags --decorate
lo = log --oneline
c = commit --no-gpg-sign
hash = log --format=\"%H\" -1
hash-time = log --format=\"%H %ct\" -1
branch-name = "!git rev-parse --abbrev-ref HEAD"
push-u = "!git push -u origin $(git branch-name)"
push-temp = "!git push -f origin $(git branch-name):refs/temp/$(git branch-name)"
push-delete-temp = "!git push origin :refs/temp/$(git branch-name)"
[fetch]
prune = true
[push]
default = upstream
autoSetupRemote = true
[advice]
detachedHead = false
addIgnoredFile = false
[diff]
algorithm = histogram
noPrefix = true
[rerere]
enabled = true