自建git服务器搭建使用记录

git在push的时候出现insufficient permission for adding an object错误

//解决方法,在git库的目录下
//明明一开始创建user的时候有执行这个命令,不知道什么原因
chown -R git:git mygit.git

Git本地中文文件名问题解决 linux环境

//Git本地中文文件名问题解决
git config --global core.quotepath false

克隆自建的Linux上的远程仓库

//1 创建用户
git config --global user.name "你的名字"
git config --global user.email "你的邮箱"

//2 创建秘钥(用来防止每次commit或push都需要密码)
ssh-keygen -t rsa -C "你的邮箱"

//3 取得公钥(找到.ssh目录下的id_rsa.pub文件)

Linux上(CentOS)搭建Git服务器

参考了:
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137583770360579bc4b458f044ce7afed3df579123eca000
https://www.cnblogs.com/liter7/p/6581344.html

原文地址:https://www.cnblogs.com/papi/p/8990849.html