-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
47 lines (41 loc) · 1.12 KB
/
Copy pathgitconfig
File metadata and controls
47 lines (41 loc) · 1.12 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
[user]
email = davisokoth@gmail.com
name = Davis Okoth
[alias]
pf = push --force-with-lease
pu = push -u
del = branch -d
lg = log --graph
st = "status -s -b"
c = "commit"
rai = "rebase --autosquash -i"
undo = "reset @^"
# --all
# --verbose
br = "branch -a -v"
co = "checkout"
cb = "checkout -b"
# Short hash, relative date and message.
logd = "log --pretty='%C(yellow)%h %C(cyan)%ar %Creset%s'"
# --graph:
# Draw a text-based graphical representation of the commit history on
# the left hand side of the output.
# --decorate:
# Print out the ref names of any commits that are shown. Defaults to
# short optionm such that the name prefixes refs/heads/, refs/tags/ and
# refs/remotes/ will not be printed.
ls = "log --graph --decorate --oneline"
[init]
defaultBranch = main
[fetch]
prune = true
pruneTags = true
writeCommitGraph = true
[rerere]
autoUpdate = true
enabled = true
[pull]
rebase = true
[core]
editor = "nano"
excludesfile = "~/.gitignore"