Changes between Version 61 and Version 62 of WorkingWithGit


Ignore:
Timestamp:
Oct 30, 2016, 1:58:30 AM (8 years ago)
Author:
larryv (Lawrence Velázquez)
Comment:

revise setup section

Legend:

Unmodified
Added
Removed
Modified
  • WorkingWithGit

    v61 v62  
    88== Basic setup == #setup
    99
    10 Git commits identify authors and committers by name and email address. You will likely use the same name for all your Git projects, so you can set it in your `$HOME/.gitconfig` file with:
     10Git commits identify authors and committers by name and email address. You will likely use your name and a personal email address for most Git projects, so you can add them to `$HOME/.gitconfig`:
    1111{{{
    1212$ git config --global user.name 'Foo Barbaz'
    13 }}}
    14 
    15 On the other hand, you may want to reserve your MacPorts email address for MacPorts use. After cloning one of our repositories, you can set your email in `/path/to/MacPorts/repo/.git/config` with:
     13$ git config --global user.eamil 'foo.bar.baz@email.com'
     14}}}
     15
     16If you're a MacPorts committer, you should use your MacPorts email address while working in MacPorts repositories. You can override your global settings by modifying `/path/to/MacPorts/repo/.git/config`:
    1617{{{
    1718$ cd /path/to/MacPorts/repo
    1819$ git config user.email foobarbaz@macports.org
    1920}}}
    20 
    21 If you are not a MacPorts committer, feel free to use any email address.
    2221
    2322