Setting your Git username for every repository on your computer
- Open Git Bash.
- Set a Git username:
$ git config --global user.name "Sezayir Dagtekin"
- Confirm that you have set the Git username correctly:
$ git config --global user.name > Sezayir Dagtekin
Setting your email address for every repository on your computer
- Open Git Bash.
- Set an email address in Git. You can use your GitHub-provided
no-reply
email address or any email address.$ git config --global user.email "sd@yahoo.com"
- Confirm that you have set the email address correctly in Git:
$ git config --global user.email sd@yahoo.com
- Add the email address to your GitHub account by setting your commit email address on GitHub, so that your commits are attributed to you and appear in your contributions graph.