forked from nabilashraf/mac-setup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
50 lines (50 loc) · 1.45 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 = First Last
email = email@email.com
[core]
editor = editor
[credential]
helper = osxkeychain
[color]
ui = true
diff = auto
status = auto
branch = auto
interactive = auto
pager = true
[color "branch"]
current = green reverse
[color "diff"]
meta = yellow
[color "status"]
untracked = cyan
[pager]
branch = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
tree = log --graph --pretty=oneline
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
l = log --pretty=colored
s = status
d = diff
aa = add -A
co = checkout
cob = checkout -b
del = branch -d
delete = branch -D
reb = !git fetch && git rebase -i origin/main
ren = "!f() { git branch -m ${2} ${1}; }; f"
up = !git fetch origin && git pull --rebase --prune
cm = !git add -A && git commit
save = !git add -A && git commit -m "SAVEPOINT"
wip = !git add -u && git commit -m "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend --reuse-message=HEAD
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
contributors = "shortlog --summary --numbered"