forked from WidkidoneR2/omarchy-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
72 lines (57 loc) · 1.06 KB
/
gitconfig
File metadata and controls
72 lines (57 loc) · 1.06 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
70
71
72
[user]
name = Christian Williams
email = christianwilliams1001@tuta.com
[core]
editor = nvim
[init]
defaultBranch = main
[pull]
rebase = false
[alias]
# Status and info
s = status
ss = status -s
# Logs
l = log --oneline --graph --decorate -10
la = log --oneline --graph --decorate --all
ll = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# Add and commit
a = add
aa = add .
c = commit -m
ca = commit --amend
# Push and pull
p = push
pl = pull
f = fetch
# Branches
b = branch
ba = branch -a
bd = branch -d
co = checkout
cob = checkout -b
# Diff
d = diff
ds = diff --staged
# Stash
st = stash
stp = stash pop
stl = stash list
# Undo (be careful!)
undo = reset HEAD~1
unstage = reset HEAD --
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green
remote = cyan
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold