Sharing code between computers

I am currently a computer science student on my way into my second year. I was wondering whether anyone has any suggestions for sharing code between multiple computers? I mostly use visual studio on my windows desktop but it would be nice to be able to code on my macbook pro as well without going through a painful process of sending myself projects and such. Any suggestions? I should probably know this by now so sorry if it is a dumb question.
Saving directly to cloud storage such as oneDrive or dropbox?
Use a version control such as git:

https://git-scm.com/
You could even set yourself up an account on Github (or similar)

https://github.com/

Andy
SVN and Git are pretty popular solutions for source control.
Thanks for the suggestions. I will look into those!
+1 GitHub.
I too would recommend GitHub, though private repositories aren't free. If you'd prefer some privacy, and won't be collaborating with many people on your code, Bitbucket may be a better alternative.

https://bitbucket.org/

-Albatross
Another alternative is to host a private Git repository from your desktop. Running the server inside a Linux VM is cleaner and should take around 256 MiB, but you can also put the SSH server directly on Windows. The only problem is that the desktop needs to be running when you want to access the repository, but this shouldn't be a problem if it's already running constantly.
I think GitHub gives you one free private repo?
@ResidentBiscuit
Only with a paid account, though students can get it free for a year or two through their student pack.
I use bitbucket, they are phenomenal.
Even if you use a private repository for most of your work, it would make sense to set up a bitbucket/GitHub/... account so you have an online portfolio you can point prospective employers at. It does appear that this kind of thing is becoming more and more expected...

Andy
Topic archived. No new replies allowed.