-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
36 lines (34 loc) · 1.52 KB
/
gitconfig
File metadata and controls
36 lines (34 loc) · 1.52 KB
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
# This is Git's per-user configuration file.
[user]
name = Alejandro Frias
email = 3598338+AlejandroFrias@users.noreply.github.com
[core]
excludesfile = /Users/alejandro/.gitignore_global
editor = /usr/local/bin/code -w
[alias]
s = "!git status && hash thunter 2>/dev/null && if [ \"$(git rev-parse --abbrev-ref HEAD)\" = \"main\" -o \"$(git rev-parse --abbrev-ref HEAD)\" = \"dev\" ]; then thunter stop; else thunter workon $(git rev-parse --abbrev-ref HEAD); fi"
b = branch
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 = ! git branch -d $1 && hash thunter 2>/dev/null && thunter finish
bdd = ! git branch -D $1 && hash thunter 2>/dev/null && thunter finish
# delete all merged branches
bdm = "! git branch --merged | grep -v 'main\\|dev' | xargs -n 1 git bd"
[diff]
compactionHeuristic = true
[init]
defaultBranch = main
templatedir = ~/.git-templates