git config --global user.name "Bob" git config --global user.email "email@example.com"
Here is what the above code is Doing:
1. git config –global user.name “Bob” sets the name you want attached to your commit transactions
2. git config –global user.email “firstname.lastname@example.org” sets the email you want attached to your commit transactions
You need to do this only once if you pass the –global option, because then Git will always use that information for anything you do on that system. If you want to override this with a different name or email address for specific projects, you can run the command without the –global option when you’re in that project.