]> Lady’s Gitweb - HOMEDIR/blob - .gitconfig
Initial commit
[HOMEDIR] / .gitconfig
1 #!git-config
2 ; @(#)🏠📂 HOMEDIR .gitconfig 2026-03-22T02:08:01Z
3 ; SPDX-FileCopyrightText: 2026 Lady <https://www.ladys.computer/about/#lady>
4 ; SPDX-License-Identifier: CC0-1.0
5
6 ;; ⁌ Git configuration
7 ;;
8 ;; This file provides some basic Git configuration.
9 ;; It is intended to be included from a user‐level Git configuration
10 ;; file; user‐specific settings like name and email are not provided.
11
12 ;; § Git aliases
13
14 [alias]
15
16 ;; ❦ `install-hooks´
17 ;;
18 ;; Installs the hooks in the `*/githooks´ subdirectories of
19 ;; `../HOMEDIR´ as symlinks.
20
21 install-hooks = "!: \"${path_HOMEDIR:=$(realpath ../HOMEDIR)}\" ; for file in \"${path_HOMEDIR}\"/*/githooks/* ; do : ; hookname=\"$(printf '%s\n' \"${file}\" | sed 's/^.*[/]\\([^/]*\\)[.][^/.]*$/\\1/')\" ; ln -fs \"${file}\" \"${GIT_DIR}\"/hooks/\"${hookname}\" ; done"
22
23 ;; ❦ `rename´
24 ;;
25 ;; Functions like `git commit --amend --reset-author´, but keeps the
26 ;; date of the commit.
27
28 rename = "!git commit --amend --reset-author --no-edit --date=\"$(git show -s | sed '/^Date:/!d;/^Date:/s/Date: *//')\""
29
30 ;; ❦ `showmsg´
31 ;;
32 ;; Prints the message of the current HEAD.
33
34 showmsg = "!git show -s | sed '/^ \\{4\\}/!d;s/ \\{4\\}//'"
35
36 ;; § Commit settings
37
38 [commit]
39
40 ;; Do not sign commits.
41 ;; This is the default, but override any system configuration to do
42 ;; so.
43
44 gpgsign = false
45
46 ;; § Color settings
47
48 ;; ❦ Branch color settings
49 ;;
50 ;; Use yellow for the current branch and cyan for the remote branch.
51
52 [color "branch"]
53 current = yellow
54 remote = cyan
55
56 ;; ❦ Diff color settings
57 ;;
58 ;; Use bold red for new content and blue for outdated content.
59
60 [color "diff"]
61 old = blue
62 new = red bold
63
64 ;; § Core settings
65
66 [core]
67
68 ;; Use CotEditor as the editor if it is defined; otherwise, use nano.
69
70 editor = "if command -v cot; then cot --wait \"$@\"; else nano \"$@\"; fi; true"
71
72 ;; Use composed forms of filenames, not decomposed forms, on macOS.
73
74 precomposeUnicode = true
75
76 ;; Don¦t escape non‐Ascii characters in paths.
77
78 quotepath = false
79
80
81 ;; § Initialization settings
82
83 [init]
84
85 ;; Use `🆕´ as the default branch name.
86
87 defaultbranch = 🆕
88
89 ;; § Pull settings
90
91 [pull]
92
93 ;; Only allow fastforward pulls.
94
95 ff = only
This page took 0.05155 seconds and 5 git commands to generate.