[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

 

相关文章:

  • 2021-12-10
  • 2021-04-08
  • 2022-12-23
  • 2021-08-29
  • 2021-04-17
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2021-09-01
  • 2021-07-09
  • 2021-06-28
  • 2021-06-05
  • 2022-03-02
  • 2021-10-19
  • 2021-04-03
相关资源
相似解决方案