Update: I apparently forgot to include one important step in this guide which would effectively prevent you from using the synced repo as intended. I included a new step 3 in the setup, but you don't need to re-do everything from scratch, you can just as well do it after everything.
Now, before we go on, if you don't know Git yet, I suggest you go read about how it differs from e.g. SVN.
How it works
As a Linux person, I'll stick to the command line here; however, if you're using Git on Windows, it comes with a nice GUI that should easily guide you through. So, here are the steps:
- Go to your cloud-synced area and create a new directory for your repo. Get in there with a shell:
- $ cd ~/dropbox
- $ mkdir test_repo
- $ cd test_repo
- $ git init
- $ touch README
- $ git add README
- $ git commit -a -m "initial commit"
- $ git config --bool core.bare true
- $ rm README
- $ cd ~/projects
- $ git clone /home/inequation/dropbox/test_repo