群晖搭建Git Server

安装Git Server套件

配置使用用户

创建Git仓库

cd /volume2
#创建git工作目录
mkdir gitrepo
#创建项目仓库
cd gitrepo
mkdir comccbopenframework
cd comccbopenframework
#初始化
git init --bare
#修改目录拥有者
chown -R zcluo:users  gitrepo
#修改目录权限
chmod -R 775 gitrepo
#clone
git clone ssh://zcluo@ddns:6622/volume2/gitrepo/comccbopenframework
#添加文件并提交
git add test.txt
git commit -m "add test.txt"git push origin master

 

 

 

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据