-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
42 lines (39 loc) · 974 Bytes
/
dot_gitconfig
File metadata and controls
42 lines (39 loc) · 974 Bytes
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
[url "git@github.com:"]
insteadOf = "https://github.com/"
[remote "origin"]
prune = true
[init]
defaultBranch = main
[diff]
algorithm = histogram
colorMoved = default
[merge]
conflictstyle = zdiff3
[branch]
sort = -committerdate
[core]
# Speed up on large repos
fsmonitor = true
untrackedCache = true
[alias]
# short aliases
st = status
co = checkout
ci = commit
br = branch
df = diff
lg = log -p
rso = remote show origin
rpo = remote prune origin
unstage = reset HEAD --
undo = reset --soft HEAD~1
last = log -1 HEAD
aliases = config --get-regexp alias
# Switch to a branch, creating it if necessary.
go = "!f() { git checkout -b \"$1\" 2>/dev/null || git checkout \"$1\"; }; f"
# Credit an author on the latest commit.
credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f"
# difftastic commands
dl = -c diff.external=difft log -p --ext-diff
ds = -c diff.external=difft show --ext-diff
dft = -c diff.external=difft diff