-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
113 lines (91 loc) · 2.06 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = diff-so-fancy | less --tabs=4 -RFX
[user]
name = Carter Green
email = cartergr@usc.edu
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[push]
default = simple
[alias]
aa = add --all
a = add
ap = add --patch
ac = '!git add && git commit'
b = branch
# List all branches, both remote and local
ba = branch -a
# Delete branch
bd = branch -d
# Show detailed branch information
bv = branch -vv
c = commit
# Stage all modified files that have been added to git
ca = commit -a
# Pass a commit message in the command
cm = commit -m
cam = commit -am
# Ammend commit
cd = commit --amend
cdra = commit --amend --reset-author
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
# Clone
cl = clone
clr = clone --recursive
# Diff unstaged files
d = diff
# Diff with line change count
ds = diff --stat
# Diff already staged files
dc = diff --cached
f = fetch
fu = fetch upstream
fo = fetch origin
g = grep
l = log --oneline
# Show commit graph
lg = log --oneline --graph --decorate
ls = ls-files
m = merge
ma = merge --abort
mc = merge --continue
ms = merge --skip
# Checkout a commit
ko = checkout
# Checkout a branch
kob = checkout -b
ps = push
pso = push origin
psf = push --force
pl = pull
plo = pull origin
plr = pull --rebase
plro = pull --rebase origin
# Unstage a file
re = reset
reH = reset HEAD
reh = reset --hard
rehH = reset --hard HEAD
# Rebase
rbi = rebase --interactive HEAD
rbc = rebase --continue
rba = rebase --abort
# Stash
sh = stash
shsh = stash show
shp = stash pop
shls = stash list
s = status
# git status and ignore untracked files
suno = status -uno
# "Undo"
undo = reset HEAD~