Changes between Version 61 and Version 62 of WorkingWithGit
- Timestamp:
- Oct 30, 2016, 1:58:30 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkingWithGit
v61 v62 8 8 == Basic setup == #setup 9 9 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:10 Git 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`: 11 11 {{{ 12 12 $ 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 16 If 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`: 16 17 {{{ 17 18 $ cd /path/to/MacPorts/repo 18 19 $ git config user.email foobarbaz@macports.org 19 20 }}} 20 21 If you are not a MacPorts committer, feel free to use any email address.22 21 23 22