克隆代码做了三件事情,1.拉取代码 2初始化本地仓库 3.创建别名

    git clone [远端地址]

    1. $ git clone https://gitee.com/zjj19941/project-demo.git
    2. Cloning into 'project-demo'...
    3. remote: Enumerating objects: 25, done.
    4. remote: Counting objects: 100% (25/25), done.
    5. remote: Compressing objects: 100% (17/17), done.
    6. remote: Total 25 (delta 7), reused 0 (delta 0), pack-reused 0
    7. Unpacking objects: 100% (25/25), done.

    发现已经有了这个目录
    image.png

    另外克隆完了之后,你也可以看这个仓库的别名

    下面发现可以看到别名了

    1. $ cd project-demo/
    2. root@ZJJ MINGW64 /e/a/project-demo (master)
    3. $ git remote -v
    4. origin https://gitee.com/zjj19941/project-demo.git (fetch)
    5. origin https://gitee.com/zjj19941/project-demo.git (push)
    6. root@ZJJ MINGW64 /e/a/project-demo (master)