evilchelu / dotfiles

dotfiles

This URL has Read+Write access

dotfiles / .gitconfig
100644 50 lines (39 sloc) 1.073 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
[user]
  ; name = Cristi Balan & Irina Dumitrascu
  name = Cristi Balan
  email = evil@che.lu
 
[alias]
  ci = commit
  co = checkout
  st = status
  br = branch
  diffc = diff --cached
  put = push origin HEAD
  nb = checkout -b
  up = !git fetch origin && git rebase origin/`git branch | grep \"^*\" | cut -d\" \" -f2`
  pending = !git --no-pager log origin/master..master && echo
  ignored = "!git ls-files --others --exclude-standard"
  retrack = '!retrack() { git config "branch.$1.remote" $(dirname "$2"); git config "branch.$1.merge" "refs/heads/$(basename "$2")"; }; retrack'
  lol = log --pretty=oneline --abbrev-commit --graph --decorate
  unadd = "reset HEAD"
 
; [format]
  ; pretty = format:"%Cblue%ar%Creset\t%s"
 
[apply]
  whitespace = nowarn
 
[diff]
  color = auto
  rename = copy
 
[pager]
  color = true
 
[status]
  color = auto
 
[core]
  excludesfile = /Users/chelu/.gitignore
 
[merge]
  summary = true
 
# also need this line in .gitattributes:
# *.rb diff=ruby
[diff "ruby"]
  funcname = ^ *\\(\\(class\\|module\\|def\\) .*\\)
 
[github]
  user = evilchelu