git 远程版本库

[root@localhost workspace]# cd repos/
[root@localhost repos]# ll
总用量
drwxr-xr-x root root 12月 : 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
上一篇:git创建版本库 小白操作 (看图)


下一篇:php中的date函数