[root@localhost workspace]# cd repos/ [root@localhost repos]# ll 总用量 4 drwxr-xr-x 7 root root 4096 12月 30 20:34 hello-world.git [root@localhost repos]# git clone --bare hello-world.git hello-user1.git 克隆到裸版本库 'hello-user1.git'... 完成。 [root@localhost repos]# git clone --bare hello-world.git hello-user2.git 克隆到裸版本库 'hello-user2.git'... 完成。
查看远程共享版本中有版本库
[root@localhost repos]# git ls-remote --heads file:///home/jackluo/workspace/repos/hello-world.git 9cc4e7bf2ad640a535a6b016d5d5c41688b2a408 refs/heads/hello-x.x bb4fef88fee435bfac04b8389cf193d9c04105a6 refs/heads/helper/master cf71ae3515e36a59c7f98b9db825fd0f2a318350 refs/heads/helper/v1.x 733dcf67eba976a61d0dc6396c9d23cb23568591 refs/heads/master