From 02f594ae4aad6e76901b4773198e4becabf03943 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Sat, 31 Dec 2011 21:28:31 +0200 Subject: [PATCH] gitconfig: First commit. It doesn't have user nor github blocks, see http://help.github.com/ for help about adding them. I am probably soon committing my vimrc too. --- .cat.sh | 1 + gitconfig | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gitconfig diff --git a/.cat.sh b/.cat.sh index 2952a1c5..061f6b4a 100755 --- a/.cat.sh +++ b/.cat.sh @@ -3,3 +3,4 @@ cat bashrc > ~/.bashrc cat tmux.conf > ~/.tmux.conf cat zshrc > ~/.zshrc +#cat gitconfig > ~/.gitconfig # I usually do not want this to be overridden so much. diff --git a/gitconfig b/gitconfig new file mode 100644 index 00000000..0e78e948 --- /dev/null +++ b/gitconfig @@ -0,0 +1,17 @@ +[alias] + # From https://github.com/blog/985-git-io-github-url-shortener#comment-15121 + shorten = "!sh -c 'curl -i http://git.io -F url=$1' -" + # From http://progit.org/book/ch2-7.html + last = cat-file commit HEAD +[core] + editor = vim +[color] + # From git manpage and http://book.git-scm.com/5_customizing_git.html + branch = true + diff = true + grep = true + interactive = true + pager = true + showbranch = true + status = true + ui = true