git
rorg
15年码农
展开
-
在.gitmodules中找不到路径和丢失的.gitmodules文件的子模块映射
在 checkout 主干时报出下面错误fatal: no submodule mapping found in .gitmodules for path 'vendor/composer/satis运行git rm --cached 'vendor/composer/satis'再 checkout 主干 就正常了原创 2020-12-01 13:45:05 · 4726 阅读 · 0 评论 -
搭建Git服务器
在远程仓库一节中,我们讲了远程仓库实际上和本地仓库没啥不同,纯粹为了7x24小时开机并交换大家的修改。GitHub就是一个免费托管开源代码的远程仓库。但是对于某些视源代码如生命的商业公司来说,既不想公开源代码,又舍不得给GitHub交保护费,那就只能自己搭建一台Git服务器作为私有仓库使用。搭建Git服务器需要准备一台运行Linux的机器,强烈推荐用Ubuntu或Debian,这样,通过几转载 2015-07-28 10:44:32 · 278 阅读 · 0 评论 -
搭建Git本地服务器
当前任务,学习中... 公司小范围用法: 服务器上做的: 在服务器上建立一个用户,这里命名为git。 ubuntu下: useradd git —— passwd git 1 (改密码为1) 找个目录,建立空仓库 git --bare init 。 ubuntu下: cd /opt —— mkdir git —— git --bare init 建立文件夹proje原创 2015-07-28 10:40:34 · 327 阅读 · 0 评论