服务器上的 Git - 在服务器上部署 Git

在服务器上部署 Git 开始架设 Git 服务器前,须要先把现有仓库导出为裸仓库 — 即一个不包含当前工做目录的仓库。作法直截了当,克隆时用 --bare 选项便可。裸仓库的目录名通常以 .git 结尾,像这样:html $ git clone --bare my_project my_project.git Cloning into bare repository 'my_project.git
相关文章
相关标签/搜索