git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
If you dont want it to be global, just skip the global flag and you can set the git config just for your local projects
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
If you dont want it to be global, just skip the global flag and you can set the git config just for your local projects