-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
35 lines (35 loc) · 1.1 KB
/
gitconfig
File metadata and controls
35 lines (35 loc) · 1.1 KB
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
[alias]
b = branch
s = status
co = checkout
ci = commit
tree = log --graph --decorate --pretty=oneline --abbrev-commit --color=always
last = log -1 HEAD
find = log --name-status --oneline -G
all = "!f() { ls -R -d */.git | xargs -I{} bash -c \"echo {} && git -C {}/../ $1\"; }; f"
dw = diff --word-diff
bw = blame -w -C -C -C
# https://stackoverflow.com/questions/1186535/how-do-i-modify-a-specific-commit
fixup = "!fn() { \
_FIXUP_COMMIT=`git rev-parse ${1}` && \
git commit -m \"fixup! ${_FIXUP_COMMIT}\" && \
git diff --quiet || STASHED=true && git stash push -m \"fixup-temp-stash\" && \
GIT_EDITOR=true git rebase --autosquash -i ${_FIXUP_COMMIT}^ && \
[ \"$STASHED\" = true ] && git stash pop; }; fn"
[user]
name = Tim Phillips
email = 3578574+tim-phillips@users.noreply.github.com
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[push]
default = simple
[pull]
ff = only
[init]
defaultBranch = main
[rerere]
enabled = true
autoUpdate = true
[branch]
sort = -committerdate