在Dropbox上搭建私有的Git倉庫的教程

在Dropbox上搭建私有的Git倉庫的教程在Dropbox上搭建私有的Git倉庫的教程

1、在Dropbox的文件夾下建立遠程repository文件夾(.git後綴)linux

cd ~/Dropbox/project
mkdir demo.git

2、進入demo.git文件夾並初始化repositorygit

cd demo.git
git init --bare

3、建立完畢,如今建立一份本地clone,如要建立在~/lab/demo/目錄下測試

cd ~/lab/
git clone ~/Dropbox/project/demo.git demo

4、測試gitthis

cd demo
touch README
git add README
git commit -m "fisrt commit"
git push origin master

5、共享/Dropbox/project/demo.git文件夾教程

[share]
comment=this is Linux share directory
path=/home/myth/share
public=yes
writable=yes

免費提供最新Linux技術教程書籍,爲開源技術愛好者努力作得更多更好:http://www.linuxprobe.com/ get

相關文章
相關標籤/搜索