对于一般只需要两三个私有仓储的开发人员来说,每月花 $7.00 购入GitHub私有服务 是很不合算的事情(大富除外)。
结合Git和同步服务在一起,不也实现了private git repo的效果么?
解决方案:
---- 在Dropbox里 , 创建 git ----
参考步骤:
(这是你正在开发的项目,不在Dropbox中)
$ cd yourproject
$ git init
$ git add *
$ git commit
$ cd ~/Dropbox
$ mkdir git
$ cd git
$ mkdir yourproject.git
$ cd yourproject.git
$ git --bare init
$ cd yourproject
$ git remote add origin ~/Dropbox/git/yourproject.git
$ git push origin master
结合Git和同步服务在一起,不也实现了private git repo的效果么?
解决方案:
---- 在Dropbox里 , 创建 git ----
参考步骤:
(这是你正在开发的项目,不在Dropbox中)
$ cd yourproject
$ git init
$ git add *
$ git commit
$ cd ~/Dropbox
$ mkdir git
$ cd git
$ mkdir yourproject.git
$ cd yourproject.git
$ git --bare init
$ cd yourproject
$ git remote add origin ~/Dropbox/git/yourproject.git
$ git push origin master