-
Notifications
You must be signed in to change notification settings - Fork 14
/
gitconfig
executable file
·52 lines (48 loc) · 2.39 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
49
50
51
#########################################################################
# High-Octane Git Config #
# #
# A whole bunch of git aliases and configurations that greatly #
# increase my own proficiency with git on the command line (CLI). #
# #
# Part of HopeSeekr's BashScripts Collection #
# https://github.com/hopeseekr/BashScripts/ #
# #
# Copyright © 2020-2021 Theodore R. Smith <[email protected]> #
# GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690 #
# #
# License: Creative Commons Attribution v4.0 International #
#########################################################################
[url "[email protected]:"]
insteadOf = git://github.com/
insteadOf = https://github.com/
insteadOf = https://github.com/
[commit]
gpgSign = true
[alias]
shows = show --show-signature
# Tired of GitHub showing 20 commits over 10 days as all happening today when you do a rebase?
# Run `git redate <hash>` and it'll fix that.
redate = rebase --committer-date-is-author-date
resign = rebase --exec 'git commit --amend --no-edit -n -S' -i
cloneup = clone --origin upstream
c = checkout
cp = cherry-pick
cpm = cherry-pick -m1
ll = log --pretty=shortlog --date=iso
pretty = ll
fix = rebase -i HEAD~2
ego = commit --amend --reuse-message=HEAD --author \"Theodore R. Smith <[email protected]>\"
alterego = commit --amend --reuse-message=HEAD --author \"Theodore R. Smith <[email protected]>\"
alterSign = config user.signingKey \"B02DF5EE699DBE4149C922D359E310F3D9BC31BD\"
# By Jared Knipp. @see https://stackoverflow.com/a/33760160/430062
retag = "!f() { git tag $2 $1 && echo Tagged $2 at $1 && git tag -d $1; }; f"
[pretty]
shortlog = format:%C(auto,yellow)%h%C(auto,magenta)% G? %Cred%ad %C(auto,green)%<(20,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D
[url "https://"]
insteadOf = git://
[pull]
rebase = true
# Automatically time out git when websites are not reachable.
[http]
lowSpeedTime = 20
lowSpeedLimit = 1000