forked from lewagon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
71 lines (60 loc) · 2.09 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
65
66
67
68
69
70
71
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[color "branch"]
current = green
remote = yellow
[core]
pager = less -FRSX
editor = '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' -n -w
excludesfile = /Users/hanefi/.gitignore_global
[alias]
co = checkout
st = status -sb
br = branch
ci = commit
fo = fetch origin
d = !git --no-pager diff
dt = difftool
stat = !git --no-pager diff --stat
# Clean merged branches
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin
# http://www.jukie.net/bart/blog/pimping-out-git-log
lg = log --graph --all --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr) %C(bold blue)%an%Creset %C(yellow)%d%Creset'
# Serve local repo. http://coderwall.com/p/eybtga
# Then other can access via `git clone git://#{YOUR_IP_ADDRESS}/
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
m = checkout master
# Removes a file from the index
unstage = reset HEAD --
please = push --force-with-lease
commend = commit --amend --no-edit
it = !git init && git commit -m “root” --allow-empty
grog = log --graph --abbrev-commit --decorate --all --format=format:\"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)\"
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
[help]
autocorrect = 1
[push]
default = simple
[branch "master"]
mergeoptions = --no-edit
[user]
email = hanefionaldi@gmail.com
name = Hanefi Onaldi
username = hanefi
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[commit]
template = /Users/hanefi/.stCommitMsg