GIT 服务器自己搭建问题记录
来源:互联网 发布:南传上座部 知乎 编辑:程序博客网 时间:2024/05/16 07:49
1.服务器上安装git,过程不描述;
- 在某个目录下创建一个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;如果是初始化的工作仓库,改为共享仓库,执行
这里写代码片
阅读全文
0 0
- GIT 服务器自己搭建问题记录
- 自己搭建git服务器
- GIT 服务器搭建记录
- 搭建自己的Git服务器
- 搭建自己的Git服务器
- 搭建自己的Git服务器
- 搭建自己的git服务器
- 搭建自己的git服务器
- 记录自己在centos虚拟机搭建简易git服务器的过程,分享给大家
- 记录自己在centos虚拟机搭建简易git服务器的过程,分享给大家
- 搭建自己的git 代码服务器
- 搭建自己的Git服务器失败了
- 搭建自己的git 代码服务器
- deepin下搭建自己的git服务器
- centos 搭建自己的git服务器
- 如何搭建属于自己的git服务器
- 搭建自己的git服务器 gitlib
- Linux下搭建自己的Git服务器
- LeetCode 90. Subsets II
- vue 单文件组件 *.vue 组件
- 黄岛区科技服务平台——为企业服务
- Flexbox简介
- 540. Single Element in a Sorted Array(C++)
- GIT 服务器自己搭建问题记录
- 包含n个整数的数组,返回该数组和为最大的子数组
- 阿里云多应用部署记录
- 给定一个数组A[0,1,...,n-1],请构建一个数组B[0,1,...,n-1],其中B中的元素B[i]=A[0]*A[1]*...*A[i-1]*A[i+1]*...*A[n-1]。不能使用除法
- LeetCode--Set Matrix Zeroes
- JAVA学习笔记05——windows下搭建集群及session共享问题
- 作业
- (转) Linux下实时查看GPU状态
- 训练fater rcnn时出现path not exist问题