Are Git forks actually Git clones?

前端 未结 10 1286
攒了一身酷
攒了一身酷 2020-11-22 04:17

I keep hearing people say they\'re forking code in Git. Git \"fork\" sounds suspiciously like Git \"clone\" plus some (meaningless) psychological willingness to forgo future

10条回答
  •  情书的邮戳
    2020-11-22 04:50

    Forking is done when you decide to contribute to some project. You would make a copy of the entire project along with its history logs. This copy is made entirely in your repository and once you make these changes, you issue a pull request. Now its up-to the owner of the source to accept your pull request and incorporate the changes into the original code.

    Git clone is an actual command that allows users to get a copy of the source. git clone [URL] This should create a copy of [URL] in your own local repository.

提交回复
热议问题