Hi spitfire_ch,
Here is a short tutorial for you:
Prerequisites:- Install git on your PC
- Optional: Install cygwin on your PC (cygwin brings a lot of useful unix tools to your enviroment. If you decide to install cygwin, you can also install git via cygwin and only use the cygwin terminal for all your development purposes)
- Create a GitHub account.
- Register your SSH key in Github (instructions)
Instructions:- Copy the .gitignore file into the directory where your .sln file is.
- Then change into that directory.
- Issue the following command to create a git repository in the directory:
- Issue the following command to stage the .gitignore file:
- Issue the following command to commit it:
Code:
git commit -m "Adding the .gitignore file"
- Now, you can add your project. Issue the following command (yes, there is a dot at the end):
- And commit your project:
Code:
git commit -m "Initial import"
- Now, you have your project committed to the git repository, you need to push it to GitHub. Follow these instructions (starting from step 6) to do so: Adding an existing project to GitHub
This is how I would do it, but AFAIK Visual Studio has some sort of integration with git. You may want to check how that works as well. But at the end of the day, you'll need to learn how Git works and how you can use it. There are millions of online tutorials.
I know it sounds intimidating, so don't feel obliged to follow. If you want to continue with developing software, using a version control system is highly recommended, though