如何利用Dropbox將專案納入GIT版本控制
- switch to your working directory
- git init
- git add .
- use 'git status' to confirm the status
- git commit -m "init"
- use 'git status' to confirm the status
- switch to the dropbox folder, ex: cd ~/Dropbox/repos
- make a remote repo: mkdir _repositoryName.git
- git init --bare _repositoryName.git
- switch to your working directory
- git remote add origin _repositoryPath, ex: /home/erica/Dropbox/repos/repositoryName.git
- git push origin master
and if you want to checkout the project: git clone _repositoryPath _projectname