1. 程式人生 > >自建git服務器搭建使用記錄

自建git服務器搭建使用記錄

false centos use email ref pub rsa 環境 keygen

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

自建git服務器搭建使用記錄