-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
30 lines (30 loc) · 966 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
[branch]
autosetuprebase = always
[color]
status = auto
branch = auto
ui = auto
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
pr = pull-request
l1 = log --format='%C(yellow)%h%C(reset) -%C(red bold)%d%C(reset) %s %C(green)(%cr) %C(cyan)<%an>%C(reset)'
graph = log --all --abbrev-commit --date=short --full-history --graph --format=format:'%C(bold blue)%h%C(reset)\t%C(bold white)%an, %ar (committed %cr)%C(reset)%C(bold green)%d%C(reset)%n \t%C(white)%s%C(reset)%n'
su = submodule update --init --recursive
nd = diff --no-ext-diff
ndc = diff --no-ext-diff --cached
[merge]
summary = true
tool = ediff
log = 50
conflictstyle = diff3
[rerere]
enabled = true
[user]
name = Your Name
email = you@yourdomain.com
[core]
editor = /usr/bin/your/favorite/editor
[push]
default = simple
[diff]
external = ~/bin/git-diff-cmd.sh