-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
28 lines (23 loc) · 1.27 KB
/
gitconfig
File metadata and controls
28 lines (23 loc) · 1.27 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
[user]
name = Arnon Zilca
email = arnonzilca@gmail.com
[color]
ui = auto
[alias]
full-graph = log --graph --oneline --date=short --all --decorate --format=format:'%C(yellow)%h %C(cyan)%ad %C(magenta)%an%C(reset) - %C(white)%s%C(bold red)%d%C(reset)'
graph = log -n 20 --graph --oneline --date=short --all --decorate --format=format:'%C(yellow)%h %C(cyan)%ad %C(magenta)%an%C(reset) - %C(white)%s%C(bold red)%d%C(reset)'
fetch-rebase = !echo 'git fetch origin && git rebase origin/master' && git fetch origin && git rebase origin/master && echo 'push with: git push --force-with-lease'
merge-cost = !branch=$(git rev-parse --abbrev-ref HEAD) && counts=$(git rev-list --left-right --count HEAD...origin/main) && yours=$(echo $counts | awk '{print $1}') && theirs=$(echo $counts | awk '{print $2}') && echo '--- '$branch' ---' && echo \" $yours commits ahead\" && git diff --shortstat origin/main...HEAD && echo '--- main ---' && echo \" $theirs commits ahead\" && git diff --shortstat HEAD...origin/main
[core]
editor = vim
[init]
templatedir = ~/.git-templates
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential "https://github.com"]
useHttpPath = true