-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
65 lines (65 loc) · 1.53 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
[user]
name = Evangelos Giataganas
email = [email protected]
username = EGiataganas
[alias]
amend = commit --amend --no-edit
branches = branch -a
cb = checkout -b
ci = commit -v
cf = !git commit --fixup=$1
co = checkout
cl = clean -fd
dc = diff --cached
delete = branch -D
diffs = diff --staged
fp = push -f
head = checkout -- .
last = log -1 HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg5 = lg -5
ra = rebase --abort
rc = rebase --continue
ria = !git rebase --interactive --autosquash $1
remotes = remote -v
rename = branch -m
st = status
stashes = stash list
stashp = stash pop
stashu = stash -u
stats = shortlog -sn --no-merges
tags = tag -l
undo = reset HEAD^ --mixed
unstage = reset HEAD --
up = "!git checkout master; git pull; git fetch -u"
upmain = "!git checkout main; git pull; git fetch -u"
[apply]
whitespace = fix
[color]
ui = auto
[core]
excludesfile = ~/.gitignore
whitespace = tab-in-indent
[help]
autocorrect = 1
[push]
default = simple
followTags = true
[pull]
ff = only
[merge]
ff = only
log = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[tag]
sort = version:refname
[rebase]
autosquash = true
[checkout]
defaultRemote = origin
[init]
defaultBranch = main