-
Notifications
You must be signed in to change notification settings - Fork 7
/
gitconfig
40 lines (40 loc) · 1.12 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
36
37
38
39
40
[user]
useConfigOnly = true
[alias]
st = status
amend = commit --amend --no-edit
br = branch
ba = branch -a
co = checkout
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
# Show files ignored by git:
ignored = ls-files -o -i --exclude-standard
fpl = push --force-with-lease
reup = !git fetch && git rebase origin/master
wip = !git add . && git commit -m "WIP"
# Push branch to origin with same name as local branch
pu = !ref="$(git symbolic-ref HEAD 2>/dev/null)" && branch="${ref##refs/heads/}" && git push -u origin "${branch}:${branch}"
cleanup = !git checkout master && git pull && git remote prune origin && git branch --merged | grep -v master | xargs git branch -d
[color]
ui = true
[push]
default = simple
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = ~/.gitignore_global
[pull]
ff = only