aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitconfig
blob: dd266ef28cfe12d7549df6c414360f6c36c36d38 (plain)
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
80
81
82
[user]
    name = nsfisis
    email = nsfisis@gmail.com

[core]
    editor = vim
    commentchar = ";"
    excludesfile = ~/.gitignore_global

[help]
    autocorrect = 1

[color]
    ui = true

[merge]
    tool = vimdiff
    ff = false

[rebase]
    autosquash = true

[diff]
    tool = vimdiff

[mergetool]
    keepbackup = false

[credential]
    helper = osxkeychain

[filter "lfs"]
    clean = git-lfs clean -- %f
    smudge = git-lfs smudge -- %f
    process = git-lfs filter-process
    required = true

[alias]
    a = add
    ap = add -p
    b = branch
    cb = rev-parse --abbrev-ref HEAD
    c = commit
    fixup = commit --fixup
    amend = commit --amend --no-edit
    clone1 = clone --depth=1
    co = checkout
    cob = checkout -b
    com = checkout master
    cod = checkout develop
    d = diff
    dc = diff --cached
    g = grep
    gf = grep --name-only
    s = status --short
    tmp = commit -a -m "TMP"
    tmps = stash save "TMP"
    ctmp = commit -m "TMP"
    sst = stash save "TMP"
    ss = stash save
    ssl = stash list
    ssa = stash apply
    ssd = stash drop
    ssp = stash pop
    last = log --pretty=fuller -1
    l = "!git rev-parse --verify --quiet develop > /dev/null; if [ $? = 0 ]; then git log --oneline develop..; else git log --oneline master..; fi"
    ll = log --oneline
    llf = log --pretty=fuller
    graph = log --oneline --graph
    r = rebase
    ri = rebase -i
    rid = rebase -i develop
    rc = rebase --continue
    m = merge
    mc = merge --continue
    mm = mergetool
    pullu = !git pull upstream $(git cb) --ff
    pullo = !git pull origin $(git cb) --ff
    pusho = !git push origin $(git cb)
    cpick = cherry-pick
    cpickc = cherry-pick --continue
    empty = commit --allow-empty