-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitconfig
50 lines (49 loc) · 1.82 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
41
42
43
44
45
46
47
48
49
50
[user]
name = Skylar Bolton
email = skylar.bolton@animalfarm.inc
signingkey = A870E1B5
[push]
default = current
[core]
editor = /usr/bin/vim
mergeoptions = --no-edit
[alias]
c = checkout
pretty = log --pretty=format:'%C(yellow)%h%C(reset) - %an [%C(green)%ar%C(reset)] %s'
sla = log --oneline --decorate --graph --all
glog = log -E -i --grep
cm = checkout -m
ca = checkout -am
unstage = reset
uncommit = reset --soft HEAD^
config = --get-regexp alias
aa = add .
d = diff
b = branch
last = log -1 HEAD
mup = !git checkout master && git pull
squash = rebase -i HEAD~5
pr = !hub pull-request
# ATTENTION: All aliases prefixed with ! run in /bin/sh make sure you use sh syntax, not bash/zsh or whatever
recentb = "!r() { refbranch=$1 count=$2; git for-each-ref --sort=-committerdate refs/heads --format='%(refname:short)|%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' --color=always --count=${count:-20} | while read line; do branch=$(echo \"$line\" | awk 'BEGIN { FS = \"|\" }; { print $1 }' | tr -d '*'); ahead=$(git rev-list --count \"${refbranch:-origin/develop}..${branch}\"); behind=$(git rev-list --count \"${branch}..${refbranch:-origin/develop}\"); colorline=$(echo \"$line\" | sed 's/^[^|]*|//'); echo \"$ahead|$behind|$colorline\" | awk -F'|' -vOFS='|' '{$5=substr($5,1,70)}1' ; done | ( echo \"ahead|behind||branch|lastcommit|message|author\\n\" && cat) | column -ts'|';}; r"
bb = !~/dot_files/include/better-git-branch.sh
[diff]
external = difft
[merge]
tool = bc3
[mergetool "bc3"]
trustExitCode = true
[pull]
rebase = false
[commit]
gpgsign = true
[init]
defaultBranch = main
[gpg]
program = /opt/homebrew/bin/gpg
[rerere]
enabled = true
[remote "origin"]
prune = true
[fetch]
prune = true