-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
35 lines (35 loc) · 1013 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
[core]
editor = vim
excludesfile = ~/.gitignore
[color]
ui = auto
[web]
browser = open
[user]
name = Jay Vana
email = [email protected]
[branch]
autosetuprebase = always
[push]
default = simple
[alias]
st = status
c = commit
ca = commit -a
cm = commit -m
cam = commit -am
br = branch
ls = branch
co = checkout
cd = checkout
df = diff
p = push
g = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
h = !git --no-pager log origin/master..HEAD --abbrev-commit --pretty=oneline
this = !git init && git add . && git commit -m \"initial commit\"
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - -a --amend
r = !git ls-files -z --deleted | xargs -0 git rm
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1 => \\2/' | sort
diff = diff --check
root = rev-parse --show-toplevel
yolo = !git commit -am \"`curl -s http://whatthecommit.com/index.txt`\"