-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
22 lines (20 loc) · 1005 Bytes
/
Copy path.gitconfig
File metadata and controls
22 lines (20 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[include]
path = ~/.gitconfig.local
[alias]
st = status -s # 簡略status
br = branch
sw = switch
sh = stash
save = stash save -u # メッセージ付きstash untrackedファイル含
see = !gh repo view --web # 該当リポジトリを開く
la = log --oneline --decorate --graph --branches --tags --remotes --all
gone = "!f() { current=$(git rev-parse --show-toplevel); git for-each-ref --format='%(refname:short)%09%(upstream:track)%09%(worktreepath)' refs/heads | while IFS=' ' read -r branch track worktree; do [ \"$track\" = '[gone]' ] || continue; if [ -n \"$worktree\" ]; then if [ \"$worktree\" = \"$current\" ]; then echo \"Skipping current worktree: $branch ($worktree)\" >&2; continue; fi; git worktree remove \"$worktree\" || continue; fi; git branch -D \"$branch\"; done; }; f"
aliases = !git config --get-regexp alias | sed 's/^alias.//g' | sed 's/ / = /1'
[fetch]
prune = true
[gpg]
format = ssh
[user]
signingkey = /Users/naoki/.ssh/id_ed25519.pub
[commit]
gpgsign = true