What is the difference between pull and clone in git?

后端 未结 11 1598
太阳男子
太阳男子 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:13

    git clone means you are making a copy of the repository in your system.

    git fork means you are copying the repository to your Github account.

    git pull means you are fetching the last modified repository.

    git push means you are returning the repository after modifying it.

    In layman's term:

    git clone is downloading and git pull is refreshing.

提交回复
热议问题