-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig.template
65 lines (54 loc) · 3.13 KB
/
gitconfig.template
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- mode:conf -*-
[user]
name = Pascal J. Bourguignon
email = pjb@informatimago.com
[push]
default = simple
[color]
ui = auto
[core]
pager = cat
[includeIf "gitdir:~/works/qorvo/"]
path = ~/works/qorvo/.gitconfig
[includeIf "gitdir:/aosp-ci/"]
path = ~/works/qorvo/.gitconfig
# [includeIf "gitdir:~/company_b/"]
# path = .gitconfig-company_b
[credential]
helper = "!credential_helper() { echo username=''; echo password=''; }; credential_helper"
[http]
cookiefile = /home/pjb/.gitcookies
postBuffer = 2G
maxRequestBuffer = 2G
[alias]
lg0 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
lg = !"git lg1"
ls = !"git log --pretty=format: --name-status | cut -f2- | sort -u"
lgb = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches
gbra = log --graph --pretty=format:'%Cred%h%C(yellow)%d %C(bold blue)<%an>%Creset %s%n' --abbrev-commit --date=relative --branches
gbral = log --graph --abbrev-commit --date=relative --branches --pretty=format:'%Cred%H%C(yellow)%d %C(bold blue)<%an>%Creset %s%n'
gbranc = log --graph --pretty=format:'%h%d <%an> %s%n' --abbrev-commit --date=relative --branches
gbrs = log --graph --pretty=format:'%Cred%h%C(yellow)%d%Creset%n' --abbrev-commit --date=relative --branches
slog = log --pretty=format:'%Cred%h%C(yellow)%d %C(bold blue)<%an>%Creset %s%n' --abbrev-commit --date=relative
david = log --oneline --decorate --graph --abbrev-commit --date=relative --branches
submodules = submodule
sub = submodule
ss = status --short
st = status
stat = status
curbra = rev-parse --abbrev-ref HEAD
curcom = rev-parse HEAD
check-email = !"git log --since='4 weeks ago' --pretty=format:'%h | %as | email=%ae | name=%an' | sort -u"
where-added = log --diff-filter=A
# [url "https://partner-android.googlesource.com/kernel/private/gs-google"]
# insteadOf = https://aosp-partner-mirror.officeapps.sevenhugs.com/partner/kernel/private/gs-google
#
# [url "https://partner-android.googlesource.com/platform/prebuilts/boot-artifacts"]
# insteadOf = https://aosp-partner-mirror.officeapps.sevenhugs.com/partner/platform/prebuilts/boot-artifacts
#
# [url "https://partner-android.googlesource.com/platform/tools/repohooks"]
# insteadOf = https://aosp-partner-mirror.officeapps.sevenhugs.com/partner/platform/tools/repohooks
[url "https://qorvopbourguignon:yMLefpnTsHRd2apNcAwV@gitlab.com/"]
insteadOf = https://gitlab.com/