-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
39 lines (34 loc) · 905 Bytes
/
.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
[push]
default = simple
autoSetupRemote = true
[pull]
rebase = false
[user]
email = jc@johnjago.com
name = John Jago
[core]
editor = nvim
[alias]
l = log
# Visualize commits and branches
lg = log --graph --decorate --oneline
# Visualize with authors and dates
lga = log --graph --abbrev-commit --decorate --format=format:'%C(auto)%h%C(reset) - %C(green)(%ar)%C(reset) %s [%an]%C(reset)%C(auto)%d%C(reset)'
s = status
a = add -A
c = commit
cm = commit -m
m = commit --amend --verbose
p = push
pt = push --tags
pu = pull
d = diff
dc = diff --cached
co = checkout
cob = checkout -b
t = tag
su = submodule update --remote --merge
# List branches sorted by last modified
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
# List aliases
la = "!git config -l | grep alias | cut -c 7-"