Use Dropbox as Git Server
By Nethru Limited (www.nethru.com)
To setup Git server, many people may suggest to register a free account in GitHub, but free account of GitHub requires your repos to open to public, or you have to purchase for private repos. If you do not want to open your source to public, and you think setting up your own Git server is too complicated, Dropbox may be your solution.
- The first thing is you need is to have your own Dropbox account. (If you do not have a Dropbox account, click here to register one)
- Then you have to install Dropbox in your computer. (Install Dropbox) After install, your computer will have created a Dropbox folder.
- In the Dropbox folder, you can create a folder to hold your Git repos. (In this example, I will create “git-repo” folder)
- Create a folder to hold your project. In the project folder, use the following git command to initialize the git repo for this project.
- After create git repo in Dropbox folder, go to your project workspace, use the following git commands to initialize git in your project.
- The next step is to link and push your project with the git repo in Dropbox.
git --bare init
git init git add * git commit -m "initial commit"
git remote add origin <dropbox_git_repo_location_here> git push origin master git checkout origin/master git branch -f master origin/master git checkout master
Now, your project is initialized and pushed to the git repo in Dropbox. You can share this repo to your teammates using the Dropbox sharing function. By Dropbox, every changes inside the git repo will be distributed to all your teammates when changes are pushed. When your teammates received your git repo by Dropbox sharing, they can clone a local copy for editing and push back after editing.