⚡ .gitconfig -> .config/git/config and improving
This commit is contained in:
82
.config/git/config
Normal file
82
.config/git/config
Normal file
@ -0,0 +1,82 @@
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[user]
|
||||
name = Jan Andrle
|
||||
email = andrle.jan@centrum.cz
|
||||
signingkey = B3A25AED155AFFAB
|
||||
[credential]
|
||||
# see https://stackoverflow.com/questions/5343068/is-there-a-way-to-cache-https-credentials-for-pushing-commits/18362082#18362082
|
||||
helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
|
||||
[alias]
|
||||
# * replaced by git-extras
|
||||
aliases = !git config -l | grep ^alias | cut -c 7- | sort # List all aliases. Stolen from here: https://twitter.com/TrevorBramble/status/774292970681937920
|
||||
checkout-default= !git checkout `git branch-default`
|
||||
checkout-default--= !git checkout-default && git branch --delete @{-1} --verbose
|
||||
branch-default = !git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'
|
||||
branches = for-each-ref --sort=-committerdate refs --format=\"%(authordate:iso8601)\t%(color:blue)%(refname:short)%(HEAD)\t%(if:notequals="")%(upstream:short)%(then)→ %(upstream:short)%(color:reset)%(else)%(color:yellow)%(objectname:short)%(color:reset)\t%(contents:subject)%(end)\"
|
||||
tags = tag -l --sort=-creatordate --format='%(refname:short): [%(creatordate:short)] %(subject)'
|
||||
# * authors: log-authors = shortlog -ns
|
||||
log-list = log --color --graph --pretty=format:'%Cred%h%Creset %Cgreen[%ad] -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset'
|
||||
log-list-nocolors = log --graph --pretty=format:'%h [%ad] -%d %s <%an>'
|
||||
status--= !git fetch && git status && echo && echo Commits unpushed: && git log @{push}..HEAD && echo
|
||||
commit--= !clear && git status -sb | grep -v -e '^ M' & git commit --interactive -v
|
||||
stashpush = !git stash && git pull && git push && git stash pop
|
||||
unstage = reset HEAD --
|
||||
undoall = reset --soft HEAD^
|
||||
diff-dirs = diff --dirstat --find-copies --find-renames --histogram --color
|
||||
status-submodule = !git submodule --quiet foreach 'git fetch' && git submodule foreach 'git status && echo'
|
||||
# * delete-submodule: rm-submodule = !git submodule deinit -f $1 && rm -rf .git/modules/$1 && git rm -rf $1
|
||||
update-submodule = submodule update --remote --merge
|
||||
pull-submodule = submodule foreach 'git pull'
|
||||
diff-submodule = submodule foreach 'git diff'
|
||||
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
|
||||
push-new=!git push -u origin `git rev-parse --abbrev-ref HEAD`
|
||||
[core]
|
||||
editor = vim
|
||||
pager = delta
|
||||
whitespace = -trailing-space,-space-before-tab
|
||||
[status]
|
||||
submoduleSummary = true
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
colorMoved = default
|
||||
submodule = log
|
||||
[merge]
|
||||
tool = vimdiff
|
||||
conflictstyle = diff3
|
||||
[log]
|
||||
date = iso
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
[delta] # [dandavison/delta: A syntax-highlighting pager for git, diff, and grep output](https://github.com/dandavison/delta)
|
||||
syntax-theme= Visual Studio Dark+
|
||||
navigate = true
|
||||
side-by-side = true
|
||||
line-numbers = true
|
||||
[gc]
|
||||
reflogExpire = 200
|
||||
reflogExpireUnreachable = 90
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[commit]
|
||||
gpgsign = true
|
||||
[rerere]
|
||||
enabled = true
|
||||
[credential "https://github.com"]
|
||||
helper =
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
[credential "https://gist.github.com"]
|
||||
helper =
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
[credential "https://git.dhl.com"]
|
||||
helper =
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
[maintenance]
|
||||
repo = /home/jaandrle/Vzdálené/GitHub/dcp-fe-container-certifedpassport
|
||||
repo = /home/jaandrle/Vzdálené/GitHub/DHLC-Internet-Networking-old
|
||||
repo = /home/jaandrle/Vzdálené/GitHub/DGF-Certified-Supervisory-Academy
|
64
.config/git/gitk
Normal file
64
.config/git/gitk
Normal file
@ -0,0 +1,64 @@
|
||||
set mainfont {{Ubuntu Mono} 11}
|
||||
set textfont {{Ubuntu Mono} 11}
|
||||
set uifont {{Ubuntu Mono} 11 bold}
|
||||
set tabstop 8
|
||||
set findmergefiles 0
|
||||
set maxgraphpct 50
|
||||
set maxwidth 16
|
||||
set cmitmode patch
|
||||
set wrapcomment none
|
||||
set autoselect 1
|
||||
set autosellen 40
|
||||
set showneartags 1
|
||||
set maxrefs 20
|
||||
set visiblerefs {"master"}
|
||||
set hideremotes 0
|
||||
set showlocalchanges 1
|
||||
set datetimeformat {%Y-%m-%d %H:%M:%S}
|
||||
set limitdiffs 1
|
||||
set uicolor #302c2c
|
||||
set want_ttk 1
|
||||
set bgcolor #2e3031
|
||||
set fgcolor #d9dedc
|
||||
set uifgcolor black
|
||||
set uifgdisabledcolor #999
|
||||
set colors {"#00ff00" red blue magenta darkgrey brown orange}
|
||||
set diffcolors {{#ffffff} #ffffff #3376f0}
|
||||
set mergecolors {red blue "#00ff00" purple brown "#009090" magenta "#808000" "#009000" "#ff0080" cyan "#b07070" "#70b0f0" "#70f0b0" "#f0b070" "#ff70b0"}
|
||||
set markbgcolor #8b8b8e
|
||||
set diffcontext 3
|
||||
set selectbgcolor #000000
|
||||
set foundbgcolor yellow
|
||||
set currentsearchhitbgcolor orange
|
||||
set extdifftool meld
|
||||
set perfile_attrs 0
|
||||
set headbgcolor #00ff00
|
||||
set headfgcolor black
|
||||
set headoutlinecolor black
|
||||
set remotebgcolor #ffddaa
|
||||
set tagbgcolor yellow
|
||||
set tagfgcolor black
|
||||
set tagoutlinecolor black
|
||||
set reflinecolor black
|
||||
set filesepbgcolor #aaaaaa
|
||||
set filesepfgcolor black
|
||||
set linehoverbgcolor #ffff80
|
||||
set linehoverfgcolor black
|
||||
set linehoveroutlinecolor black
|
||||
set mainheadcirclecolor yellow
|
||||
set workingfilescirclecolor red
|
||||
set indexcirclecolor #00ff00
|
||||
set circlecolors {white blue gray blue blue}
|
||||
set linkfgcolor blue
|
||||
set circleoutlinecolor black
|
||||
set diffbgcolors {{#600000} #004800}
|
||||
set web_browser xdg-open
|
||||
set geometry(main) 1920x1023+0+26
|
||||
set geometry(state) normal
|
||||
set geometry(topwidth) 1920
|
||||
set geometry(topheight) 255
|
||||
set geometry(pwsash0) "672 1"
|
||||
set geometry(pwsash1) "1008 1"
|
||||
set geometry(botwidth) 836
|
||||
set geometry(botheight) 763
|
||||
set permviews {}
|
Reference in New Issue
Block a user