-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
35 lines (35 loc) · 1.23 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
33
34
35
[user]
name = YourUserName
email = name@example.com
[core]
pager = env LESS_IS_MORE=1 less -FRX
[color]
branch = auto
diff = auto
status = auto
[color "diff"]
meta = white bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
accept-ours = "!f() { files=\"$@\"; [ -z $files ] && files='.'; git checkout --ours -- $files; git add -u $files; }; f"
accept-theirs = "!f() { files=\"$@\"; [ -z $files ] && files='.'; git checkout --theirs -- $files; git add -u $files; }; f"
prettylog = "!git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
undo = "!git reset --soft HEAD^"
untracked = "!git ls-files --others"
untracked-not-ignored = "!git ls-files --others --exclude-standard"
br = branch
ci = commit
co = checkout
st = status
clone-with-submodules = "!git clone --recurse-submodules"
fetch-with-submodules = "!git fetch --recurse-submodules"
pull-with-submodules = "!git pull --recurse-submodules"
push-with-submodules = "!git push --recurse-submodules=on-demand"
[push]
default = simple