Git and service Drop Box can work together and it is very convenient. They are “connected” to have access to the repository from any computer. Can use the service Github, but the free version of the account access to the repository is open to everyone. But it is only suitable for open source projects.
Setting up a remote repository Dropboks. Now we will discuss how to link Git and Dropbox.
First we need to create a remote repository. To do this folder with your project, right click, select from the menu “Git Bash”. Next, write the command:
$ git clone –bare . /d/My\ Dropbox/Public/testproject.git
With this command, we create a remote repository and copy into it our local repository.
To avoid writing such a long command permanently, you can create an alias (it will be visible in the utility Git GUI). Perform the following command.
$ git remote add testproject /d/My\ Dropbox/Public/testproject.git
Add all files of the project
$ git commit -a -m “Commit message”
Synchronize changes to the remote repository
$ git push shared project master
Now our repository with the project stored on Dropbox server.
To get a copy of the repository and work with it on a different computer, you need it to install Git and Dropbox, and run the following commands in Git Bash
$ git clone /d/My\ Dropbox/Public/testproject.git
$ git remote add sharedproject /d/My\ Dropbox/Public/testproject.git
$ git pull sharedproject master