-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dotfiles.gitconfig
52 lines (42 loc) · 1.33 KB
/
.dotfiles.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
51
52
[user]
name = Mike Priscella
email = [email protected]
[alias]
branches = branch -a
chb = checkout -b
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# Remove branches that have already been merged with master
# a.k.a. ‘delete merged’
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d; git remote -v update -p"
empty = commit --allow-empty -n -m "Empty-Commit"
g = grep --break --heading --line-number
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
remotes = remote -v
# View the current working tree status using the short format
s = status -s
su = "!git branch --set-upstream-to=origin/$1 $1"
tags = tag -l
ytd-commits = !"git rev-list --count HEAD --since=\"Jan 1 $(date +%Y)\" --before=\"Dec 31 $(date +%Y)\""
[color]
ui = auto
[fetch]
prune = true
[rebase]
autosquash = true
[push]
default = current
[grep]
extendRegexp = true
lineNumber = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[pull]
rebase = false
[core]
editor = nvim
attributesFile = ~/.gitattributes
# vim: set filetype=gitconfig :