GIT 服务器自己搭建问题记录
2017-09-26 12:01
239 查看
1.服务器上安装git,过程不描述;
在某个目录下创建一个git仓库,执行
这样就OK了,然后客户端拉取代码,不能拉取代码,多数是权限的问题,设置git组后分配目录的操作权限;
第一次push错误,insufficient permission for adding an object to repository database,权限问题,参考push error,配置仓库为共享库,git config core.sharedRepository
if is not group or true or 1 or some mask, try running:
git config core.sharedRepository group,再分配权限,
cd /path/to/test.git
chgrp -R groupname .
chmod -R g+rwX .
find . -type d -exec chmod g+s ‘{}’ +
第一次push不上分支问题,git config ‘receive.denyCurrentBranch’ warn 配置下这个就OK;
push 文件看不见问题,客服端push,服务端马上删除,remote: warning: updating the current branch,目录下执行
如果是初始化的工作仓库,改为共享仓库,执行
在某个目录下创建一个git仓库,执行
git init --bare test.git;
这样就OK了,然后客户端拉取代码,不能拉取代码,多数是权限的问题,设置git组后分配目录的操作权限;
第一次push错误,insufficient permission for adding an object to repository database,权限问题,参考push error,配置仓库为共享库,git config core.sharedRepository
if is not group or true or 1 or some mask, try running:
git config core.sharedRepository group,再分配权限,
cd /path/to/test.git
chgrp -R groupname .
chmod -R g+rwX .
find . -type d -exec chmod g+s ‘{}’ +
第一次push不上分支问题,git config ‘receive.denyCurrentBranch’ warn 配置下这个就OK;
push 文件看不见问题,客服端push,服务端马上删除,remote: warning: updating the current branch,目录下执行
git reset --hard,OK;
如果是初始化的工作仓库,改为共享仓库,执行
这里写代码片
相关文章推荐
- Android Studio 连接自己搭建的服务器 需要admin 的帐号的问题 SSH Password Login,please enter password for user git@git.
- 记录自己在centos虚拟机搭建简易git服务器的过程,分享给大家
- 记录自己在centos虚拟机搭建简易git服务器的过程,分享给大家
- 搭建git私有服务器及同步更新自己网站的文件
- 在CentOS下搭建自己的Git服务器
- 在CentOS下搭建自己的Git服务器
- git 服务器搭建,在自己服务器上搭建私有仓库
- 数据库从RDS迁入自己服务器上问题记录
- 自己搭建Git服务器并实现无密码访问.
- deepin下搭建自己的git服务器
- centos6.5搭建git服务器 win10 安装git客户端连接 和遇到的问题+解决方式
- git 服务器搭建,在自己服务器上搭建私有仓库
- 搭建自己的Git服务器
- git 服务器搭建,在自己服务器上搭建私有仓库
- 阿里云Linux CentOS 7 Docker部署使用gogs搭建自己的git服务器
- 使用 Gogs 搭建自己的 Git 服务器
- windows+CentOS+git服务器搭建记录
- Windows下Git服务器搭建及使用过程中的一些问题
- 搭建自己的Git服务器
- windows上自己搭建服务器问题总结