summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to 'git')
-rw-r--r--git/.config/git/config54
-rw-r--r--git/.config/git/ignore2
-rw-r--r--git/projects/gentoo/.gitconfig12
3 files changed, 68 insertions, 0 deletions
diff --git a/git/.config/git/config b/git/.config/git/config
new file mode 100644
index 0000000..9656a24
--- /dev/null
+++ b/git/.config/git/config
@@ -0,0 +1,54 @@
+[user]
+ email = mattst88@gmail.com
+ name = Matt Turner
+ signingkey = 0xACEB29740C9A4E97!
+[includeIf "gitdir:~/projects/gentoo/"]
+ path = ~/projects/gentoo/.gitconfig
+[color]
+ ui = auto
+[rebase]
+ autosquash = true
+ autostash = true
+ updaterefs = true
+[core]
+ autocrlf = false
+ filemode = false
+ pager = less -+F
+[diff]
+ renames = true
+ srcprefix = ./
+ dstprefix = ./
+ algorithm = histogram
+ colormoved = true
+[push]
+ default = simple
+ autosetupremote = true
+[pull]
+ rebase = true
+[alias]
+ fixes = show -s --pretty='format:Fixes: %h (\"%s\")'
+ co = checkout
+ cp = cherry-pick
+ br = branch
+ shwo = show
+ grpe = grep
+ lgo = log
+ last-commit-to = log -n 1 --pretty=format:%H
+ git = !exec git
+ gti = !exec git
+[init]
+ defaultBranch = main
+[fixup]
+ menu = fzf --height '60%' \
+ --bind 'tab:toggle-preview' \
+ --bind 'space:preview-page-down' \
+ --preview 'git show --color {+1}' \
+ --preview-window=up:80% \
+ --preview-window cycle \
+ --prompt 'Select commit: '
+[commit]
+ verbose = true
+[branch]
+ sort = -committerdate
+[tag]
+ sort = version:refname
diff --git a/git/.config/git/ignore b/git/.config/git/ignore
new file mode 100644
index 0000000..25b4c59
--- /dev/null
+++ b/git/.config/git/ignore
@@ -0,0 +1,2 @@
+.ccls-cache
+compile_commands.json
diff --git a/git/projects/gentoo/.gitconfig b/git/projects/gentoo/.gitconfig
new file mode 100644
index 0000000..79cffde
--- /dev/null
+++ b/git/projects/gentoo/.gitconfig
@@ -0,0 +1,12 @@
+[user]
+ email = mattst88@gentoo.org
+[pull]
+ ff = only
+ rebase = merges
+[push]
+ default = simple
+ gpgsign = if-asked
+[commit]
+ gpgsign = 1
+[sendemail]
+ to = gentoo-dev@lists.gentoo.org