-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
50 lines (48 loc) · 1.25 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 = Maia
email = [email protected]
[core]
editor = vim
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
[color]
ui = auto
[alias]
a = add -A
d = diff
dno = diff --name-only
st = status
co = checkout
cp = cherry-pick
b = branch
cob = checkout -b
cm = commit -m
ca = commit --amend --no-edit
cae = commit --amend # commit amend EDIT
cmempty = commit --allow-empty -m
log = log --stat
l = log --pretty=format:'%Cred%h%Creset - %C(yellow)<%an>%Creset %s %Cgreen(%cr)' --abbrev-commit
lol = log --pretty=format:'%Cred%h%Creset - %C(yellow)<%an>%Creset %s %Cgreen(%cr)' --abbrev-commit -n 15
pull = pull --rebase
pullom = "!git pull origin $main_branch"
pushom = "! git push origin $main_branch"
rebm = "! git rebase $main_branch"
rebi = rebase -i
rebcont = rebase --continue
rebabt = rebase --abort
rest = reset head~
# https://github.com/dpup/git-workflow
pr = pull-request
[grep]
lineNumber = true
[push]
default = current
# https://github.com/so-fancy/diff-so-fancy
[include]
path = ~/.gitconfig_local
[interactive]
diffFilter = diff-so-fancy --patch
[init]
defaultBranch = main
[utils]
mainBranch = "main"