Activity Team/Git Tutorial: Difference between revisions
| Line 62: | Line 62: | ||
=== Initialize git global settings === | === Initialize git global settings === | ||
Git must know your email and name. It uses this when you push or mail | Git must know your email and name. It uses this when you commit a change, so that when you push or mail it others will know who did it. | ||
If you do not use git on your system for any other project, you can configure git: | If you do not use git on your system for any other project, you can configure git: | ||
| Line 69: | Line 69: | ||
git config -f ~/.gitconfig user.name <your-name> | git config -f ~/.gitconfig user.name <your-name> | ||
Otherwise, configure git in the repository | Otherwise, configure git in the repository: | ||
cd ${SLUG} | |||
git config user.email <email-you-used-for-registering-project> | git config user.email <email-you-used-for-registering-project> | ||
git config user.name <your-name> | git config user.name <your-name> | ||