-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgitconfig
36 lines (36 loc) · 950 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
[include]
path = ~/.gitconfig.user
[commit]
template = ~/.gitmessage
[push]
default = current
[color]
ui = auto
[core]
excludesfile = ~/.gitignore
autocrlf = input
[merge]
ff = only
[pull]
ff = only
[fetch]
prune = true
[rebase]
autosquash = true
[diff]
colorMoved = zebra
[alias]
aa = add --all
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
c = commit -v
ca = commit --amend
co = checkout
d = diff
dc = diff --cached
ds = diff --staged
fup = !git fetch origin && git rebase origin/develop
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
pf = push --force-with-lease
pullr = "!f() { git fetch ${2:-origin} refs/pull/$1/head:pr/pull_$1; } ; f"
st = status
who = shortlog -n -s --no-merges