-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig
61 lines (47 loc) · 1.7 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
52
53
54
55
56
57
58
59
60
61
[user]
name = Richard van der Hoff
email = [email protected]
signingkey = 392A2BD3423D78FF
[credential]
helper = cache
[color]
ui = auto
pager = true
[pretty]
oneline2 = tformat:%C(yellow)%h%C(green)%d%C(reset) <%an> %ai %s
[alias]
logg = log --graph
lol = log --graph --pretty=oneline2 --abbrev-commit
lola = log --graph --pretty=oneline2 --abbrev-commit --all
st = status
co = checkout
# local copy; clone and reset origin to same as original
lcp = !sh -c 'git clone ${0} ${1} && git --git-dir=${1}/.git remote set-url origin `git --git-dir=${0}/.git config --get remote.origin.url` && git --git-dir=${1}/.git fetch origin'
# push and set upstream
pushu = !git push -u origin `git symbolic-ref --short HEAD`
amend = commit --no-verify --no-edit --amend
[push]
# make git only push the current branch by default
# tracking, rather than upstream, for compat with git 1.7.2
# (they are synonyms)
default = tracking
# push the current branch to the upstream branch with the same name
# (this means we don't set the upstream branch, which means that
# 'pull' doesn't work, and the bash prompt doesn't tell us we have
# an upstream)
# default = current
[rebase]
# enable --autosquash by default for git rebase
autosquash = true
# this won't work on git < 1.7.10, but is harmless on older versions
# (as indeed it is if the included file is missing)
[include]
path = ~/.gitconfig.local
[rerere]
enabled = true
[gpg]
program = /usr/bin/gpg2
[core]
attributesfile = /home/rav/dotfiles/gitattributes
[init]
defaultBranch = main