-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgitconfig_work
More file actions
79 lines (62 loc) · 2.01 KB
/
gitconfig_work
File metadata and controls
79 lines (62 loc) · 2.01 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[user]
name = Frank Lazzarini
email = frank.lazzarini@post.lu
;
; Automatically colorize console output
;
[color]
diff = auto
status = auto
branch = auto
branchdfh = auto
grep = auto
;
; Aliases
;
[alias]
; simple shortcuts
st = status -sb
co = checkout
ci = commit
; Show abbreviated log with a branch graph
lg = log --all -n20 --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lga = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
; Show abbreviated log with timestamps
sl = log --pretty=format:'%Cgreen%ai%Cblue %h%Creset %s'
; Show log detailed history
lgd = log --stat --abbrev-commit
; Show summary (git tags/branches)
lgs = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --simplify-by-decoration
; Show last 10 tags
tagl = ! git tag --sort=-version:refname | head -n 10
[core]
; my global ignores file
excludesfile = ~/.gitignore
; Let's use vim as the default editor
editor=nvim
[tag]
; Sort tags by version
sort = v:refname
[diff]
; ... and vimdiff as diff tool
tool=vimdiff
[pull]
ff = only
[difftool]
; don't always ask for confirmation to open the diff tool
prompt = false
[push]
; By default, push to the tracking remote.
default = tracking
[submodule]
recurse = true
[url "https://"]
; Redirect git:// to https:// (git:// not working at work)
insteadOf = git://
; vi: ft=gitconfig
[credential "https://github.com"]
helper =
helper = !/home/users/frank/.local/bin/gh auth git-credential
[safe]
directory = /mnt/local/nfs-exports/configsaver_files