克隆代码做了三件事情,1.拉取代码 2初始化本地仓库 3.创建别名
git clone [远端地址]
$ git clone https://gitee.com/zjj19941/project-demo.git
Cloning into 'project-demo'...
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 25 (delta 7), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (25/25), done.
发现已经有了这个目录
另外克隆完了之后,你也可以看这个仓库的别名
下面发现可以看到别名了
$ cd project-demo/
root@ZJJ MINGW64 /e/a/project-demo (master)
$ git remote -v
origin https://gitee.com/zjj19941/project-demo.git (fetch)
origin https://gitee.com/zjj19941/project-demo.git (push)
root@ZJJ MINGW64 /e/a/project-demo (master)