git 远程版本库

[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

 

转载于:https://www.cnblogs.com/jackluo/p/3502269.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值