-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
28 lines (23 loc) · 857 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
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
listdead = "!sh -c \"git branch -vv | grep ': gone]' | awk '{print \\$1}'\""
prunedead = "!sh -c \"git branch -vv | grep ': gone]' | awk '{print \\$1}' | xargs git branch -D\""
uncommit = reset --mixed HEAD~
unstage = reset -q HEAD --
discard = checkout --
unstash = stash pop
tree = log --all --graph --decorate --oneline
undo = reset --soft HEAD~
rebase-onto = "~f() { git rebase --onto main $(git merge-base \"$1\" \"$2\") \"$1\"; }; f"
[init]
defaultBranch = main
[user]
name = Keith Wade
email = [email protected]
[core]
editor = vim
# pager = git-split-diffs --color | less -RFX
[pull]
rebase = false
[push]
autoSetupRemote = true