-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
49 lines (36 loc) · 1.18 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[alias]
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
remotes = remote -v
# Remove the old tag with this name and tag the latest commit with it.
retag = "!r() { git tag -d $1 && git push origin :refs/tags/$1 && git tag $1; }; r"
# List contributors with number of commits
contributors = shortlog --summary --numbered
[commit]
# Sign commits by default
gpgSign = true
[diff]
# Detect copies as well as renames
renames = copies
[init]
# Use the default branch name "main" instead of "master"
defaultBranch = main
# URL replacements
[url "https://github.com/"]
insteadOf = "gh:"
[url "https://github.com/williamwmarx/"]
insteadOf = "wwm:"
[url "https://github.com/atemp-studio/"]
insteadOf = "t3:"
[url "https://github.com/cwdt-us/"]
insteadOf = "cwdt:"
[user]
# My git info
email = m94@marx.sh
name = William W. Marx
signingkey = C97084827DFFF57E