-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
46 lines (39 loc) · 1006 Bytes
/
Copy path.gitconfig
File metadata and controls
46 lines (39 loc) · 1006 Bytes
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
[user]
name = chiro
email = i@chir.jp
[core]
autocrlf = input
excludesfile = ~/.gitignore
editor = vim
[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 remote 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
[push]
autoSetupRemote = true
[rebase]
autoStash = true
[ghq]
root = ~/src
[init]
defaultBranch = main