You have a deposit git locally that you'll like linked to the empty repository you created online. We show the steps to do it.
git – Global information tracker
Everything you need to know about Git, the developer's favorite tool.
.gitignore does not work - the file is not taken into account - Troubleshooting
You make a change in your .gitignore file for your application but it is not taken into account. The solution in this article.