Best way is to use GitHub which is part of Visual Studio. The only caveat is that files that only resides in the bin\debug folder are not included but if you do have files there there are ways to handle them, just ask me.
The basic instructions are on the following page.