Difference between git remote add and git clone

前端 未结 4 1236
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 18:54

What does the clone command do? Is there any equivalent to it in svn?

What is the difference between

git remote add test git://github.c         


        
4条回答
  •  眼角桃花
    2020-12-22 19:23

    git remote add just creates an entry in your git config that specifies a name for a particular URL. You must have an existing git repo to use this.

    git clone creates a new git repository by copying an existing one located at the URI you specify.

提交回复
热议问题