From 195bb6e477231b96c18b2062f1ef59d64a6f81cd Mon Sep 17 00:00:00 2001 From: tekkub Date: Sun, 6 Mar 2011 03:32:18 -0700 Subject: Use a common include for the email settings --- _posts/2009-06-20-git-email-settings.textile | 38 ---------------------------- 1 file changed, 38 deletions(-) delete mode 100644 _posts/2009-06-20-git-email-settings.textile (limited to '_posts/2009-06-20-git-email-settings.textile') diff --git a/_posts/2009-06-20-git-email-settings.textile b/_posts/2009-06-20-git-email-settings.textile deleted file mode 100644 index 105f7c4..0000000 --- a/_posts/2009-06-20-git-email-settings.textile +++ /dev/null @@ -1,38 +0,0 @@ ---- -layout: default -title: Setting user name, email and GitHub token -description: Configure your local git installation so that commits are linked to your GitHub account -categories: troubleshooting popular ---- - -This guide covers basic git settings you should set before making any commits. - -Please note that config changes will only affect future commits. Existing commits will retain the info they were committed with. Also, the environment variables @GIT_COMMITTER_NAME@, @GIT_COMMITTER_EMAIL@, @GIT_AUTHOR_NAME@ and @GIT_AUTHOR_EMAIL@ will override git-config settings if they are defined. - -h2. Setting user name and email globally in git - -Git needs to know your username and email address to properly credit your commits. Setting this setting will also let GitHub link the commits you make to your GitHub account. Only commits made after you change this setting will use the new info, old commits will preserve the info they were committed with. - -p(. _The "email" setting does not have to be a valid email address, it only need match the "user@server" naming scheme._ - -
$ git config --global user.name "Tekkub"
-$ git config --global user.email "tekkub@gmail.com"
- -h2. Overriding settings for individual repos - -If you do not want commits to be "blamed" on your global email setting, you can override these settings on a per-repo basis. - -
$ cd my_other_repo
-$ git config user.name "Not Tekkub"
-$ git config user.email "not@tekkub.net"
- -h2. GitHub token config - -Some tools connect to GitHub without SSH, for these tools you need to set your "local GitHub config":http://github.com/blog/180-local-github-config. You can find your token on the "account page":https://github.com/account - -!http://img.skitch.com/20091209-k5x2xa1rrc889deqmp53464m8n.png! - -
$ git config --global github.user tekkub
-$ git config --global github.token 0123456789abcdef0123456789abcdef
- -If you change your GitHub password a new token will be created, therefore you'll need to change this setting. -- cgit v1.3.1