-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitconfig
45 lines (44 loc) · 1.23 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
[user]
name = Mike Rogers
email = [email protected]
[core]
excludesfile = ~/.gitignore_global
editor = vim
autocrlf = input
[color]
ui = auto
[push]
default = current
[pull]
rebase = false
[init]
defaultBranch = main
[alias]
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
h = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
amend = commit --amend
remove-last = reset --soft HEAD~1
remove-last-hard = reset --hard HEAD~1
amend = commit --amend
remove-last = reset --soft HEAD~1
remove-last-hard = reset --hard HEAD~1
co = checkout
current-branch = !sh -c 'git rev-parse --abbrev-ref HEAD' -
st = status
cm = commit -m
ca = commit -a
cam = commit -am
add-to-last-commit = commit --amend -C HEAD --no-verify
# Use SSH over HTTPs when talking to GitHub always.
[url "[email protected]:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"