-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitconfig
34 lines (34 loc) · 1008 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
29
30
31
32
33
34
[alias]
# Abbreviated log
alog = !git log --graph --abbrev-commit
# Abbreviated log of commits by $1
alogby = !git log --graph --abbrev-commit --author
# Abbreviated log of my commits
alogme = !git log --graph --abbrev-commit --author "${USER}"
# Show branches sorted by last commit and include the date in the output
branchl=!git for-each-ref --sort=authordate --format "'%(authordate:iso) * %1B[0;32m%(refname:short)%1B[m %(subject)' --sort=-committerdate refs/heads"
# Diff word-level
diffw=!git diff --color-words
# Diff staged
diffs=!git diff --staged
# Diff staged, word-level
diffsw=!git diff --staged --color-words
# List git aliases
la = !git config --list | grep -F alias
# Status for lazy
stat=!git status
# Unstage/restore files from staging
unstage=!git reset HEAD
[color]
ui = auto
[diff]
noprefix = true
[push]
default = current
[user]
email = [email protected]
name = Christopher Peterson
[init]
defaultBranch = main
[pull]
rebase = false