-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
69 lines (69 loc) · 2.03 KB
/
gitconfig
File metadata and controls
69 lines (69 loc) · 2.03 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[push]
default = upstream
[color]
ui = auto
[alias]
a = add
aa = add --all
ap = add --patch
alias = config --get-regexp ^alias\\.
b = checkout -b
bb = branch
bd = branch -d
bdd = branch -D
c = commit
cc = commit -am
ca = commit --amend
cam = commit -a
can = commit --amend --no-edit
caan = commit -a --amend --no-edit
cap = commit -p --amend
caap = commit -ap --amend
cm = commit -m
caw = commit -am "wip"
cp = commit -p
cw = commit -m "wip"
cv = commit -v
co = checkout
d = diff
dh = diff HEAD~1..HEAD
dc = diff --word-diff --cached --color-words
df = diff --word-diff --color-words
l = log --oneline
ld = log --oneline --decorate
ll = log --oneline --decorate --graph -40
lla = log --oneline --decorate --graph --all -40
llg = log --oneline --decorate --graph --first-parent main -40
lg = log -E -i --grep
ls = log --oneline
lw = log --date=relative --since='1 week ago' --oneline
mup = !git checkout main && git pull && git checkout -
p = push
pf = push --force-with-lease
pfu = push -fu origin HEAD
pu = push -u origin HEAD
r = rebase main
ri = rebase -i main
ua = reset
uc = reset --soft HEAD^
us = reset HEAD --
undo = co
[core]
autocrlf = input
[merge]
ff = only
[commit]
template = ~/.gitmessage
[fetch]
prune = true
[rebase]
autosquash = true
[include]
path = ~/.gitconfig.local
[diff]
colorMoved = zebra
[user]
name = John Schoeman
email = johnschoeman1617@gmail.com
[init]
defaultBranch = main