Repository navigation
Expand file tree
/
Copy pathgitconfig
More file actions
53 lines (52 loc) · 1.7 KB
/
Copy pathgitconfig
File metadata and controls
53 lines (52 loc) · 1.7 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[init]
templatedir = ~/.git_template
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
ca = commit --amend
ci = commit -v
co = checkout
co-pr = !sh -c 'git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1' -
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git branch -D $1' -
merge-branch = !git checkout master && git merge @{-1}
pr = !hub pull-request
st = status
up = !git fetch origin && git rebase origin/master
br = branch
branchdiff = !sh -c \"git diff `git oldest-ancestor`..\"
branchlog = !sh -c \"git log `git oldest-ancestor`..\"
diverges = !zsh -c 'git rev-list --boundary $1...$2 | grep ^- | cut -c2-'
merge = merge --no-ff
pull = pull --no-ff
oneline = log --pretty=oneline
logdate = log --pretty=format:'%ad %h %aN %s';echo
la = log --pretty=\"format:%ad %h (%an): %s \" --date=short
lad = log --pretty=format:'%Cgreen[%ad]%Creset %C(yellow)%h%Creset %C(bold blue)(%an)%Creset %s ' --date=short
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
sh = diff-tree --no-commit-id --name-only -r
[core]
excludesfile = ~/.gitignore
autocrlf = input
[merge]
ff = only
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[include]
path = .gitconfig.local
[commit]
template = ~/.gitmessage
[fetch]
prune = true
[diff]
color = auto
tool = vimdiff
[difftool]
prompt = false