From 50d63b2f215d0a02f874d18b3009d23103c1b589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 15 Apr 2024 10:56:13 +0200 Subject: [PATCH] Added .gitconfig.local MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .gitconfig.local | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .gitconfig.local diff --git a/.gitconfig.local b/.gitconfig.local new file mode 100644 index 0000000..eda661c --- /dev/null +++ b/.gitconfig.local @@ -0,0 +1,49 @@ +[gpg] + program = gpg + +[commit] + gpgsign = true + verbose = true +[pull] + rebase = false + +[push] + autoSetupRemote = true + +[init] + defaultBranch = main + +[alias] + ci = commit --verbose + co = checkout + cp = cherry-pick + df = !git --no-pager diff + dfh = !git --no-pager diff + diffh = !git --no-pager diff + lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an - %ae>%Creset' --abbrev-commit --branches + prune-tags = !git tag -l | xargs git tag -d && git fetch -t + show = --no-pager show --color --pretty=format:%b + squash-all = "!f(){ git reset $(git commit-tree HEAD^{tree} \"$@\");};f" + st = status --ignore-submodules=dirty -s + untrack-file = !git update-index --assume-unchanged + c = commit --author='Marcin Woźniak -s' + cw = commit --author='Marcin Woźniak -s' + pullwork = GIT_SSH_COMMAND='ssh -i ~/.ssh/work/id_rsa' git pull + + +[url "git@github.com:"] + insteadOf = "https://github.com/" + +[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 + +[filter "lfs"] + process = git-lfs filter-process + required = true + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f