-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
64 lines (64 loc) · 2.17 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
63
64
[user]
email = mr@zealot.hu
name = Bán Dénes
[http]
postBuffer = 1048576000
[alias]
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g' # List available aliases
a = add
b = branch
bd = "!f() { git branch -d $1 && git remote | xargs -irem git push rem --delete $1; }; f"
ci = commit -m
ca = commit -am # Commit with auto Add
oops = commit --amend --no-edit # Fix fuckup
reword = commit --amend # Edit last commit message
redeploy = !git diff --exit-code --quiet && git commit --allow-empty -m "Redeploy" && git push # Redeploy blog after theme changes
uncommit = reset --soft HEAD~1 # Undo last commit but keep changed files in stage
co = checkout
d = diff
ds = diff --staged
f = fetch
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short
la = l --all
m = merge
ff = merge --ff-only
q = merge --squash
p = push
pf = p --force
pa = !git remote | xargs -L1 git push # Push to all remotes
paa = pa --all # Push everything to all remotes
pr = "!f() { git fetch origin pull/${1}/head:pr${1} && git checkout pr${1}; }; f" # Fetch pull request
r = reset
rh = r --hard
s = status
ss = stash
sa = stash apply
untrack = rm --cache -- # Remove file(s) from Git but not from disk
[core]
editor = code --wait
whitespace = -trailing-space # Don't consider trailing space change as a cause for merge conflicts
[diff]
tool = default-difftool
mnemonicPrefix = true # Use better, descriptive initials (c, i, w) instead of a/b.
renames = true # Show renames/moves as such
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[color]
status = always
[pull]
rebase = merges
[push]
followTags = true
[tag]
sort = version:refname # Sort tags as version numbers whenever applicable, so 1.10.2 is AFTER 1.2.0.
[versionsort]
suffix = -alpha
suffix = .alpha
suffix = -beta
suffix = .beta
suffix = -rc
suffix = .rc
[url "https://github.com/"]
insteadOf = gh:
[url "https://bitbucket.org/"]
insteadOf = bb: