What is the basic way to have GIT save my working project to backup?
That would be push it the the shared folder managed by DropBox.
See this blog entry as a practical example
From the project directory of the project you want to share, type:
bash$ git clone --bare . ~/Dropbox/Shared/MySharedProject.git
Note: Keep in mind that I’m assuming you already have this project under Git version control.
The –bare keyword we used in the clone command means that we simply want to create a directory that contains the contents of the .git directory in your project directory and not the actual workspace.
The .git directory contains all of your code and changes to everything you need is there–it’s just not the actual workspace where xcode works from.
Create a remote (alias) for the newly cloned project by typing:
bash$ git remote add sharedproject ~/Dropbox/Shared/MySharedProject.git
Now you can push any code changes from your working directory to the cloned directory, which, since it is in your Dropbox will automatically be uploaded to the drop box and downloaded by any other computers you have that can access Dropbox.
First you need to commit any changes in your working directory with the following command.
bash$ git commit -a -m "Commit message"
Then you need to push the changes to the remote with the following.
bash$ git push sharedproject master
This pushes your changes to the cloned repository which is in your Dropbox directory. As soon as you do this, you should see the Dropbox icon in your menu bar change to the ’synchronizing’ icon. If your change is small, it will only change for a split second so you’ll have to watch it closely to see that happen.
Once your files are committed and have been pushed to your cloned repository, you can now pull the project from another computer.