bash-4.2$ cd my.git/
bash-4.2$ ls
branches config description HEAD hooks info objects refs
第二步:克隆仓库
创建一个文件夹,就可以在本地克隆仓库。
bash-4.2$ mkdir myclient
bash-4.2$ cd myclient/
bash-4.2$ git clone user@本机IP:/home/user/my.git
Cloning into 'my'...
The authenticity of host '10.xxx.154.150 (10.xxx.154.150)' can't be established.
ECDSA key fingerprint is SHA256:MHSZ0x5/N1swsW9skwTP2m9t35zBEY86eyM8HA+lIgI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.xxx.154.150' (ECDSA) to the list of known hosts.
[email protected]'s password:
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
bash-4.2$ ls
my