leetcode-master icon indicating copy to clipboard operation
leetcode-master copied to clipboard

《一文手把手教你搭建Git私服》文章中的git仓库目录错误

Open siuyutpang opened this issue 6 months ago • 0 comments

在这篇文章中的 服务器端部署Git 仓库 这一section中切换到git用户后,为什么还要进入git目录? 如果是在~/git目录下创建的仓库的话,在本地设置远程仓库地址的话应该是以下命令:

git remote add origin git@git服务器端的ip:git/world.git

但是根据你添加远程仓库的地址来看,你的远程仓库是放在git用户的家目录下,所以说这是相矛盾的

siuyutpang avatar Aug 02 '24 15:08 siuyutpang