-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
32 lines (32 loc) · 1.05 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
[core]
excludesfile = ~/.gitignore_global
[alias]
st = status -s
ls = "!f() { git log --decorate `git rev-parse --abbrev-ref origin/HEAD`..; }; f"
ll = log --decorate
timeline = log --graph \"--pretty=format:%C(192)%h%Creset by %C(bold 239)%an%Creset (%ar)%C(182)%d%Creset%n%s%n%b\" --all
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
branches = branch -a
tags = tag
stashes = stash list
unstage = reset HEAD --
discard = restore --
amend = commit --amend --no-edit
fixup = "!f() { git commit --fixup=$1 ${@:2} && git rebase -i --autosquash $1^; }; f"
wip = "!f() { git add . && git commit -m WIP; }; f"
[format]
pretty = %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset
[init]
defaultBranch = master
[merge]
conflictStyle = zdiff3
[pull]
rebase = true
[push]
default = current
[rebase]
autoStash = true
[user]
name = Matteo Giordano
[include]
path = ~/.gitconfig.local