-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
41 lines (36 loc) · 964 Bytes
/
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
[user]
name = Gustavo Araujo
email = [email protected]
[github]
username = garaujodev
user = garaujodev
[color]
ui = auto
[alias]
st = status --short --branch
ci = commit
br = branch
co = checkout
df = diff
lg = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
who = shortlog -s --
dft = difftool -y
d = difftool
committers = shortlog --summary --email --committer -n
last-commit = !sh -c 'git rev-list HEAD --abbrev-commit | head -1'
current-branch = !sh -c 'git branch | grep \\* | sed "s/^*\\ //g"'
update = !sh -c 'git fetch --prune && git rebase origin/`git current-branch`'
clear = !sh git-clear
undo = reset --soft HEAD^
[commit]
gpgsign = true
[core]
excludesfile = ~/.gitignore_global
autosetuprebase = always
[gpg]
program = gpg
[pager]
branch = false
stash = false
[init]
defaultBranch = main