From 4818757bb13d09abd49229bc9d372183e545990d Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Wed, 28 Nov 2012 12:21:17 +0400 Subject: [PATCH] Git: local identity. ~/.gitlocal works only in Git 1.7.10.2 but .gitlocal works in 1.7.10. --- setup/Readme.md | 7 +++++++ tilde/gitconfig | 8 +++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/setup/Readme.md b/setup/Readme.md index 38be2c8..de7184c 100644 --- a/setup/Readme.md +++ b/setup/Readme.md @@ -47,6 +47,13 @@ Installs Chrome and makes it default browser. ## Tips & Tricks +### Local Git identity + +``` +git config -f ~/.gitlocal user.email "artem@sapegin.ru" +git config -f ~/.gitlocal user.name "Artem Sapegin" +``` + ### How to remove US English keyboard layout on Mac OS X Useful when you use some kind of [typography layout](http://ilyabirman.ru/projects/typography-layout/). diff --git a/tilde/gitconfig b/tilde/gitconfig index a54557c..c30e340 100644 --- a/tilde/gitconfig +++ b/tilde/gitconfig @@ -48,9 +48,7 @@ # Include local settings # Requires Git 1.7.10 -# Example: -# [user] -# name = Artem Sapegin -# email = artem@sapegin.ru +# git config -f ~/.gitlocal user.email "artem@sapegin.ru" +# git config -f ~/.gitlocal user.name "Artem Sapegin" [include] - path = ~/.gitlocal + path = .gitlocal