Create a GitHub account and add your username to your Git config.
Working Better, Together
The repository you've created so far is just on your computer, which is handy, but makes it pretty hard to share and work on with others. No worries, that's what GitHub is for!
GitHub is a website that allows people everywhere to upload what they're working on with Git so that everyone can easily work together on the same project. GitHub which acts as the central repository for you and everyone else to share. You push your changes to it and pull down changes from others.
Create a GitHub Account
Visit github.com and sign up for a free account. High five, welcome!
Add GitHub username to Git
Add your GitHub username to your Git configuration. We'll do this just for the sake of Git-it; it makes it easier to verify the upcoming challenges. Save it exactly as you created it on GitHub and capitalize where capitalized. Note, you don't need to enter the "<" and ">".
Add your GitHub username to your Git configuration:
git config --global user.username <USerNamE>
You can double check what you have set in your Git config by typing:
git config --global user.username
Make sure you type "user.username" above and not "user.name", which would override the name you set in the first challenge and leave you with no username property! If you found you did that, it's ok, just repeat the step in the first challenge to add your name and then complete the step above.
GitHub & Git config usernames do not match
A common error is not having your GitHub username match the case of the one you set with git config
.
For instance, 'JLord' isn't the same as 'jlord'
To change your username set with Git, just do the same command you did earlier, but with the correct capitalization:
git config --global user.username <UserName>
When you've made your updates, verify again!