When developing your game or hobby project, the most important tool you need is version control. Most people are aware of how they work and why we use them, so I’ll spare the details. If you want to save some sweet bucks, you can easily setup a local repository and avoid paying for a cloud subscription with tools such as tortoiseSVN. All your files will be backed up locally and you can enjoy all the sweet features of version control. But what if your hard drives burns down, that never happens right? Well turns out even in 2018, it can still happen that you need to format, therefore lose all your precious work. So you can go ahead a setup a local server, or a time machine, but you’ll end up spending a lot of money on extra hardware. What if you server burns down or even get stolen?

So, most people setup a Bitbucket or Github account to have everything secured in the cloud for around 150$ a year. But then, it would be nice to also secure and possibly share all of those other files, so you turn to Dropbox or google drive where you can host 1TB for around 120$ a year. I started using Dropbox some years ago to backup all my personal files, so I was already paying a yearly subscription. So I though, maybe I can avoid doubling my yearly fees and have Dropbox act as a Github repository as well as a everything else backup solution.

Best idea for savings hundreds of dollars a year! Here’s how to set it up:

  • Install git for windows, or for mac
  • Create a new unity project (I have a SSD at C: and Keep everything on drive D:) at /d/Work/ExcitingNewProject
  • Launch the git console or terminal and initialize git by typing:
    • cd /d/Work/ExcitingNewProject
    • git init
    • git add Assets/
    • git add ProjectSettings/
    • git commit -m “first commit”
  • Then you need to create the git repository inside your Dropbox folder and link your project to it by typing:
    • cd /d/Dropbox/GIT/
    • git init –bare ExcitingNewProject.git
    • cd /d/Work/ExcitingNewProject
    • git remote add origin /d/Dropbox/GIT/ExcitingNewProject.git
    • git push -u origin master
  • For more convenience you can add your Work/ExcitingNewProject folder to a free visual software such as Sourcetree and you will see your successful first commit. Keep working from there and if you want to share the project with an unlimited amount of partners, simply share your ExcitingNewProject.git dropbox folder and ask them to checkout the project from that source.

 


leHubert

I am a game developer who talks about making games in comics.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: