git init
in the solution folder. That is the proper way to create a repository folder..gitignore
file, so you don't commit unnecessary stuff.git add
git commit
git remote add origin <proper URL>
git push
your codeAlternatively, there are detailed guides here using the Visual Studio integration.