-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
33 lines (31 loc) · 1.06 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
# This is Git's per-user configuration file.
[user]
name = Alejandro Frias
email = [email protected]
[core]
excludesfile = /Users/alejandro/.gitignore_global
editor = /usr/local/bin/code -w
[alias]
b = branch
s = status
st = stash
d = diff
a = add
co = commit
f = fetch
p = pull
commend = commit --amend --reset-author --no-edit
init = ! git init && git commit -m "root" --allow-empty
glog = log --graph --abbrev-commit --decorate --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)'
snapshot = ! git stash save "[snapshot] $(date)" && git stash apply
up = ! git pull origin $(git rev-parse --abbrev-ref HEAD)
bhist = ! git reflog | egrep -io 'moving from ([^[:space:]]+)' | awk '{ print }' | head
ch = checkout
chb = checkout -b
chm = checkout main
bd = branch -d
bdd = branch -D
[diff]
compactionHeuristic = true
[init]
defaultBranch = main