forked from lewagon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
58 lines (46 loc) · 1.64 KB
/
.gitconfig
File metadata and controls
58 lines (46 loc) · 1.64 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
47
48
49
50
51
52
53
54
55
56
57
58
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[color "branch"]
current = green
remote = yellow
[core]
pager = less -FRSX
editor = code -w
excludesfile = /Users/jody.vandenschrick/.gitignore_global
[alias]
co = checkout
st = status -sb
br = branch
ci = commit
fo = fetch origin
d = !git --no-pager diff
dt = difftool
stat = !git --no-pager diff --stat
# Clean merged branches
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin
# http://www.jukie.net/bart/blog/pimping-out-git-log
lg = log --graph --all --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr) %C(bold blue)%an%Creset %C(yellow)%d%Creset'
# Serve local repo. http://coderwall.com/p/eybtga
# Then other can access via `git clone git://#{YOUR_IP_ADDRESS}/
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
m = checkout master
# Removes a file from the index
unstage = reset HEAD --
## Sam's aliases
current-branch = "!f() { git symbolic-ref --short HEAD 2>/dev/null; }; f"
changed-files = "!f() { (git diff --name-only $(git current-branch) $(git merge-base $(git current-branch) master) "$@"; git ls-files --modified "$@") | sort | uniq; }; f"
rspec = "!(git changed-files *_spec.rb; git changed-files *.rb | xargs -n 1 -- basename | sed -e 's/.rb/_spec.rb/' | xargs -n 1 -- git f 2>/dev/null) | xargs -t -- rspec"
rubocop = "!git changed-files *.rb | xargs -t -- rubocop"
[help]
autocorrect = 1
[push]
default = current
[branch "master"]
mergeoptions = --no-edit
[user]
email = jody.vanden@gmail.com
name = Jody Vandenschrick