Config for git.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 21 Jan 2011 01:02:53 +0200
changeset 116 a8fea1f09a09
parent 115 a9284e1e57b3
child 117 02b91508db83
Config for git.
.gitconfig
Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gitconfig	Fri Jan 21 01:02:53 2011 +0200
@@ -0,0 +1,53 @@
+# -*- mode: conf -*-
+
+[user]
+name = Oleksandr Gavenko
+email = gavenkoa@gmail.com
+
+[alias]
+br = branch
+ci = commit -a
+co = checkout
+cp = cherry-pick
+graph = log --graph --oneline --decorate
+info = config --list
+pop = !git stash apply && git stash clear
+sb = show-branch
+st = status
+staged = diff --cached
+summary = log --oneline
+tags = tag -n1 -l
+w = whatchanged
+
+[core]
+whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
+excludesfile = ~/.gitignore
+
+[apply]
+# fix/strip/nowarn
+# whitespace = strip
+
+[diff]
+color = auto
+# Makes the diff much shorter when moving or copying files.
+rename = copy
+
+# The number of files to consider when performing the copy/rename
+# detection; equivalent to the git diff option -l.
+# renamelimit = 0
+
+[pager]
+color = true
+
+[status]
+color = auto
+
+[color]
+branch = auto
+diff = auto
+interactive = auto
+status = auto
+
+pager = true
+ui = true
+
--- a/Makefile	Fri Jan 21 00:46:39 2011 +0200
+++ b/Makefile	Fri Jan 21 01:02:53 2011 +0200
@@ -16,7 +16,7 @@
     .inputrc .minttyrc .Xdefaults .xinitrc .xserverrc \
     .bashrc .vimrc .ssh \
     .mailsign .tidy \
-    .hgrc .hgignore .bazaar
+    .hgrc .hgignore .bazaar .gitconfig .gitignore
 MANUALINSTALL_ITEMS = .mc
 IFNONEXIST_ITEMS = .wgetrc