What is the difference between pull and clone in git?

后端 未结 11 1607
太阳男子
太阳男子 2020-12-04 04:29

What is the difference between doing (after mkdir repo and cd repo):

git init
git remote add origin git://github.com/cmcculloh/repo         


        
11条回答
  •  日久生厌
    2020-12-04 05:18

    In laymen language we can say:

    • Clone: Get a working copy of the remote repository.
    • Pull: I am working on this, please get me the new changes that may be updated by others.

提交回复
热议问题