forked from gnarf/.dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
50 lines (48 loc) · 1.57 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
[user]
name = iLan Epstein
email = [email protected]
[alias]
feature = flow feature
st = status -sb
ci = commit
cm = commit -am
br = branch
co = checkout
df = diff
lp = log -p
fo = fetch origin
rom = rebase origin/main --rebase-merges
rod = rebase origin/develop --rebase-merges
refix = "!f() { git rebase -i --autosquash $1^; }; f"
recon = rebase --continue
amend = commit --amend --no-edit
who = shortlog -n -s --no-merges
temp = commit -am \"TEMP - to remove\"
undo = reset --hard
rehead = "!f() { git reset HEAD~$1; }; f"
lc = log ORIG_HEAD.. --stat --no-merges
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lf = log --pretty=fuller
cleanup = !git gc && git remote prune origin
fork = remote add -f
squash = merge --squash
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
pp = format-patch -U8 --stdout
ff = merge --ff-only
[core]
autocrlf = input
excludesfile = /Users/iLanLappy/.gitignore_global
editor = code -n -w
[credential]
helper = store
[color]
ui = auto
[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/iLanLappy/.stCommitMsg