Are Git forks actually Git clones?

前端 未结 10 1235
攒了一身酷
攒了一身酷 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条回答
  •  旧时难觅i
    2020-11-22 04:53

    I think fork is a copy of other repository but with your account modification. for example, if you directly clone other repository locally, the remote object origin is still using the account who you clone from. You can't commit and contribute your code. It is just a pure copy of codes. Otherwise, If you fork a repository, it will clone the repo with the update of your account setting in you github account. And then cloning the repo in the context of your account, you can commit your codes.

提交回复
热议问题