-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
45 lines (39 loc) · 998 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
37
38
39
40
41
42
43
44
45
[user]
name = chiro
email = [email protected]
[core]
autocrlf = input
excludesfile = ~/.gitignore
editor = vim
[color]
diff = auto
status = auto
branch = auto
[commit]
cleanup = scissors
[alias]
br = branch
b = branch -v
setupstream = "!f(){ git br --set-upstream-to=${1} ${2}; };f"
ci = commit
df = diff
lg = log --pretty=oneline --graph --abbrev-commit --decorate
s = status
st = status
sh = show
sw = switch
unstage = reset HEAD --
rb = rebase
rs = restore
# Checkout a remove branch
cr = !git branch -r | peco --prompt 'BRANCH>' | cut -d'/' -f2- | xargs git checkout
# Show all defined aliases
alias = !git config --get-regexp '^alias\\.' | sed 's/alias\\.\\([^ ]*\\) \\(.*\\)/\\1\\\t => \\2/' | sort
# Delete a branch selected by peco
bd = !git branch | grep -Ev '\\*|master|main' | peco | xargs git branch -D
[pull]
ff = only
[ghq]
root = ~/src
[init]
defaultBranch = main