-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
executable file
·54 lines (54 loc) · 1.8 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
[color]
filemode = false
diff = auto
status = auto
branch = auto
pager = true
[push]
default = simple
[core]
autocrlf = input
pager = less -FRSX
excludesfile = ~/.gitexcludes
editor = vim
[alias]
alias = "!sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -"
b = branch
ci = commit
co = checkout
cob = checkout -b
st = status
d = diff
l = log
ri = rebase --interactive
tree = log --all --graph --pretty=format:'%C(yellow)%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
fixup = "!bash -c 'if [[ $(git diff --cached| head -c1 | wc -c) -ne 0 ]]; then git reset --soft HEAD~1 && git commit -m \"$(git log --format='%B' --reverse HEAD..HEAD@{1})\"; else echo No changes staged; fi' -"
squash = !sh -c 'git commit -a -m \"squash! $(git log -1 --format='%s' $@)\" && git rebase -i HEAD~2' -
emojicommit = "!f() { git commit -m \"$1 $2\"; }; f"
cbuild = emojicommit :package:
cci = emojicommit :construction_worker:
cbreaking = emojicommit :boom:
cdocs = emojicommit :pencil:
cfeature = emojicommit :sparkles:
cbugfix = emojicommit :bug:
chotfix = emojicommit :ambulance:
cperf = emojicommit :zap:
crefactor = emojicommit :recycle:
cstyle = emojicommit :art:
ctest = emojicommit :white_check_mark:
cinitial = emojicommit :tada:
cversion = emojicommit :bookmark:
cwip = emojicommit :construction:
cconfig = emojicommit :wrench:
[rebase]
autosquash = true
[merge]
tool = kdiff3
[mergetool "kdiff3"]
keepBackup = false
trustExitCode = false
[diff]
tool = kdiff3
[user]
name = José Antonio Perdiguero López
email = perdy@perdy.io