Skip to content
Home » How to Setup username and password on Git

How to Setup username and password on Git

When you install Git, the first thing you should do is configure your user name and email address. This is very important as every Git commit uses the username and password information. Run the below commands to setup username and password.

git config --global user.name "Similar Geeks"
git config --global user.email geeks@example.com

If you select the --global option, you only need to do this once because Git will always utilize that information for anything you do on that system. If you want to use a different name or email address for certain projects, run the command without the --global option while in that project.

Also Read:

Setup emacs editor on Git