commit 27bc16db73255249d2cb4e2d77d3cfe6e504086f
parent 380473e70800b0b36ef44e0838e0c74de18108b4
Author: Michael Neuper <michael@michaelneuper.com>
Date: Fri, 1 Aug 2025 19:30:10 +0200
add git config to dotfiles
Diffstat:
3 files changed, 142 insertions(+), 0 deletions(-)
diff --git a/.config/git/attributes b/.config/git/attributes
@@ -0,0 +1 @@
+*.org diff=org
diff --git a/.config/git/config b/.config/git/config
@@ -0,0 +1,88 @@
+[user]
+ name = Michael Neuper
+ email = michael@michaelneuper.com
+ username = michaelneuper
+ signingkey = ~/.ssh/id_ed25519_github.pub
+
+[core]
+ editor = nvim
+ whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
+ pager = delta
+
+[init]
+ defaultBranch = main
+
+[checkout]
+ defaultRemote = origin
+
+[gpg]
+ format = ssh
+
+[commit]
+ gpgSign = true
+
+[credential]
+ helper = osxkeychain
+
+[url "git@github.com:michaelneuper/"]
+ insteadOf = "my:"
+
+[url "git@github.com:"]
+ insteadOf = "gh:"
+
+[url "git@git.cs.sun.ac.za:Computer-Science/rw144/2024/"]
+ insteadOf = "cs144:"
+
+[url "git@git.cs.sun.ac.za:Computer-Science/rw214/2025/"]
+ insteadOf = "cs214:"
+
+[url "rw244-2025@gitolite.cs.sun.ac.za:27905551/"]
+ insteadOf = "cs244:"
+
+[credential "https://git.cs.sun.ac.za"]
+ provider = generic
+
+[color]
+ ui = auto
+
+[color "branch"]
+ current = yellow bold
+ local = green bold
+ remote = cyan bold
+
+[color "diff"]
+ meta = yellow bold
+ frag = magenta bold
+ old = red bold
+ new = green bold
+ whitespace = red reverse
+
+[color "status"]
+ added = green
+ changed = yellow
+ untracked = red
+
+[diff "org"]
+ xfuncname = "^(\\*+ +.*)$"
+
+[delta]
+ features = decorations
+ line-numbers = true
+ dark = true
+ side-by-side = false
+ syntax-theme = gruvbox-dark
+
+[delta "decorations"]
+ minus-style = red bold normal
+ plus-style = green bold normal
+ minus-emph-style = white bold red
+ minus-non-emph-style = red bold normal
+ plus-emph-style = white bold green
+ plus-non-emph-style = green bold normal
+ file-style = yellow bold none
+ file-decoration-style = yellow box
+ hunk-header-style = magenta bold
+ hunk-header-decoration-style = magenta box
+ minus-empty-line-marker-style = normal normal
+ plus-empty-line-marker-style = normal normal
+ line-numbers-right-format = "{np:^4}│ "
diff --git a/.config/git/ignore b/.config/git/ignore
@@ -0,0 +1,53 @@
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+*.pyc
+*.pyo
+
+# Packages #
+############
+# it's better to unpack these files and commit the raw source
+# git has its own built in compression methods
+*.7z
+*.dmg
+*.gz
+*.iso
+*.jar
+*.rar
+*.tar
+*.zip
+*.msi
+
+# Logs #
+######################
+*.log
+
+# OS generated files #
+######################
+.DS_Store
+.DS_Store?
+._*
+.Spotlight-V100
+.Trashes
+ehthumbs.db
+Thumbs.db
+desktop.ini
+
+# Temporary files #
+###################
+*.bak
+*.swp
+*.swo
+*~
+*#
+
+# IDE files #
+#############
+.vscode
+.idea
+.iml