-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
62 lines (47 loc) · 1 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
62
[core]
editor = vim
autocrlf = input
[user]
name = Oleg Kainov
email = [email protected]
#signingkey = AAAAAA
#[commit]
# gpgsign = true
[color]
ui = true
[color "decorate"]
tag = green
[alias]
# Basic commands
a = add
br = branch
co = checkout
cp = cherry-pick
st = status
# Diff
df = diff
diffc = diff --cached
dfc = diff --cached
# Commit
cm = commit # -s
ca = commit --amend
can = commit --amend --no-edit
# Rebase
ri = rebase -i
ra = rebase --autostash
ria = rebase -i --autostash
# Log
logcolor = log --decorate
last = log -1
graph = log --graph --decorate --oneline --all --format=format:'%C(yellow)%h %ad%C(auto)%d %C(reset)%s%C(magenta dim) [%an]' --date=short
lds = log --pretty=format:'%C(yellow)%h %ad%C(auto)%d %C(reset)%s%C(magenta dim) [%an]' --date=short --decorate
# List of git aliases
la = "!git config -l | grep alias | cut -c 7-"
d = difftool
ps = push -u
[sequence]
editor = rebase-editor
[gitreview]
remote = origin
[receive]
denyCurrentBranch = warn