forked from tpounds/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
44 lines (38 loc) · 1.17 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
[alias]
# Replace HEAD with a new commit that includes both existing and currently staged changes.
amend = commit --amend
# Update commit message with a suitable rebase --autosquash prefix.
fixup = commit --fixup
squash = commit --squash
# Pretty-print log with DAG (see: https://coderwall.com/p/euwpig/a-better-git-log)
lg = log --all --color --date-order --graph --format='%C(auto)%h%C(reset) -%C(auto)%d%C(reset) %s %C(green)(%cr) %C(bold blue)%aN <%aE>%C(reset)'
# Show pending changes
staged = diff --cached
unstaged = diff
pending = diff HEAD
# Search for work to do
todo = grep -i -e '\\bFIXME\\b' -e '\\bNOTE\\b' -e '\\bTODO\\b' -e '\\bXXX\\b'
# Undo the last commit and keep changes in working directory
undo = reset --mixed HEAD~1
# Show branch merge status
merged = branch --merged
unmerged = branch --no-merged
[commit]
verbose = true
[diff]
algorithm = histogram
renameLimit = 10000
[init]
templatedir = ~/.git-template
[log]
follow = true
[merge]
ff = no
[push]
default = simple
[rebase]
autosquash = true
autostash = true
[user]
email = [email protected]
name = Trevor Pounds