connect git to Github account

git, github

Solution

- Create a new repository on github (cf the "New repository" button on Github main page)

- Add this repository as a remote: `git remote add origin url/provided/by/github`

- Push to this repository: `git push origin master`

Problem

Sorry for asking a lame question but I'm new to this and needed help. I installed git on my laptop first and made an account on github later, how do I connect them now? Many articles on net describe how to connect if github account is made first then git is installed but the other way round is not given. I'm asking this because I've made a repository on my system but it is not showing in the github account even though both have the same email address.

Original source