I’m new to programming and would like to set up some kind of version control. I’m not sure how all this works.
I’m thinking that i would need to set up some remote server to check code in and out of so that if something happens to my computer i don’t lose the code.
What i don’t understand is if there are websites over there that offer free hosting for the repository or how does that work.
Have a look at github.com. You can have there free git (famous version control system) hosting up to 300MB (i think it’s 300) of source code.
I think github has also payed account where you can have private/non-public-visible repositories.
And maybe also take a look at bitbucket.org.
What i do:
I’m using gitosis on a own server.
With gitosis you can build you own git remote (server).
But this solution requires a root server which cost around 70UDS/month.
With your own server you are independent and you don’t have to place your code on other servers.