Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我们使用以下命令备份 git repos
git clone --mirror gitolite@git:projectname.git
我怎样才能访问该项目..如果我进入 projectname 它看起来像一个服务器 repo 而不是我可以看到我的代码的一个?
--mirror暗示--bare。您仍然可以使用git工具(log、show、cat-file、ls-tree等或gitk可视化工具)查看文件。但是,如果您想使用非git工具环顾四周,您可能会git clone /path/to/my/local/copy/of/projectname.git /some/new/path. 环顾四周后,您始终可以删除第二个克隆;或者如果您出于任何原因需要引用它,请保留它...
--mirror
--bare
git
log
show
cat-file
ls-tree
gitk
git clone /path/to/my/local/copy/of/projectname.git /some/new/path