forked from brandonwamboldt/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
38 lines (38 loc) · 1.41 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
[user]
# name = Your Name
# email = [email protected]
[core]
whitespace = trailing-space,space-before-tab
autocrlf = false
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
page = true
[alias]
am = commit --amend
pf = "!git push -f origin $(git rev-parse --abbrev-ref HEAD)"
can = commit --amend --no-edit
ci = commit -a
co = checkout
st = status -sb
cp = cherry-pick
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short --branches
praise = blame
purr = pull --rebase
rhu = reset --hard @{u}
rhy = reset --hard @{u}
standup = “!git log –since yesterday –author `git config user.email` –pretty=short”
reposize = "!f() { git checkout $1 2>/dev/null; git ls-files --exclude-standard | xargs cat | wc -l | tail -n 1; git checkout master 2>/dev/null; }; f"
pushu = "!git push -u origin $(git rev-parse --abbrev-ref HEAD)"
pushf = "!git push -f origin $(git rev-parse --abbrev-ref HEAD)"
acp = "!git add -A && git commit --amend -C HEAD && git push -f origin $(git rev-parse --abbrev-ref HEAD)"
addnw = "!git diff -w --no-color | git apply --cached --ignore-whitespace"
[apply]
whitespace = fix
[url "git://github.com/"]
insteadOf = gh:
[url "[email protected]:"]
pushInsteadOf = "git://github.com/"