-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgit.setup
executable file
·48 lines (45 loc) · 1.09 KB
/
git.setup
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
# Setup git configuration
source bash-helpers
bak ~/.gitconfig
cat > ~/.gitconfig <<''EOF
[core]
color = false
; pager = vi
[pager]
branch = cat
[color]
; log = false
; ui = auto
; diff = auto
; status = auto
; branch = auto
[pack]
threads = 0
[alias]
all = !git.all
a = add -A .
co = checkout
c = commit
s = status -uall
r = remote -v
fetch-all = fetch --all
l = "log --graph --decorate --all --date=format:'%F %T' --pretty='%C(auto) %h %d %s %C(#BCBCBC) | %cr | %cd | %an'"
ll = "log --graph --decorate --date=format:'%F %T' --pretty='%C(auto) %h %d %s %C(#BCBCBC) | %cr | %cd | %an'"
log-patches = log -p
log-date-relative = log --date=relative
log-file = log --follow -p --
files-all-ever = !git log --pretty=format: --name-only --diff-filter=A | uniq-unsorted | tac
b = branch --list -vva --sort=committerdate
d = diff -- ':(exclude)package-lock.json' .
push-all-branches = push --all -u
[push]
default = simple
[commit]
verbose = true
template = ~/.gitmessage
[diff "nodiff"]
command = /bin/true
[user]
email = [email protected]
name = Your Name
EOF