Before getting started with git, set the email address so that your contribution can be identified in git version history.
git config --global --add user.email <your email>Set the name so that it can be identified in git version history.
git config --global --add user.name <your user name>Once you set the above configuration, then your information will appear in git history as shown below:
commit 6e523791f2fde1581d3d42b2fc4f84a0a1d0d9df
Author: Your Name <your_name@gmail.com>
Date: Wed Apr 26 15:09:02 2017 -0700
Some comment.If you want to see all the configurations that are set currently, you can do:
git config --listThere are lot of other configurations that can be set but these two are most important ones to get you going.
No comments:
Post a Comment