aboutsummaryrefslogtreecommitdiff
path: root/linux/home/.gitconfig
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
committersrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
commit19120d4f9761c67d99ed1ce3da6084b83f5a49c9 (patch)
treef234cad1bdad88114a63c9702144da487024967a /linux/home/.gitconfig
parent5928998af5404ae2be84c6cecc10ebf84bd3f3ed (diff)
downloaddotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.tar.gz
dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.zip
Linux-specific dotfiles
Diffstat (limited to 'linux/home/.gitconfig')
-rw-r--r--linux/home/.gitconfig28
1 files changed, 28 insertions, 0 deletions
diff --git a/linux/home/.gitconfig b/linux/home/.gitconfig
new file mode 100644
index 0000000..8b2ef30
--- /dev/null
+++ b/linux/home/.gitconfig
@@ -0,0 +1,28 @@
+[user]
+ name = srdusr
+ email = trevorgray@srdusr.com
+[init]
+ defaultBranch = main
+[color]
+ ui = true
+[alias]
+ graph = log --oneline --graph --decorate
+ ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
+ ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
+ lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
+ conflicts = diff --name-only --diff-filter=U
+ local-branches = !git branch -vv | cut -c 3- | awk '$3 !~/\\[/ { print $1 }'
+ recent-branches = !git branch --sort=-committerdate | head
+ authors = !git log --format='%aN <%aE>' | grep -v 'users.noreply.github.com' | sort -u --ignore-case
+ sba ="!f() { git subtree add --prefix $2 $1 main; }; f"
+ sbu ="!f() { git subtree pull --prefix $2 $1 main; }; f"
+ stashrebase = "!f() { if [ \"$(git symbolic-ref --short HEAD)\" = \"main\" ]; then git stash save && git fetch && git rebase origin main && git stash apply; else git stash save && git fetch && git rebase origin master && git stash apply; fi; }; f"
+ dotfiles = "!f() { git --git-dir=$HOME/.cfg --work-tree=$HOME stashrebase; }; f"
+
+
+[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