如何利用Dropbox將專案納入GIT版本控制

  1. switch to your working directory
  2. git init
  3. git add .
  4. use 'git status' to confirm the status
  5. git commit -m "init"
  6. use 'git status' to confirm the status
  7. switch to the dropbox folder, ex: cd ~/Dropbox/repos
  8. make a remote repo: mkdir _repositoryName.git
  9. git init --bare _repositoryName.git
  10. switch to your working directory
  11. git remote add origin _repositoryPath, ex: /home/erica/Dropbox/repos/repositoryName.git
  12. git push origin master

and if you want to checkout the project: git clone _repositoryPath _projectname