Are Git forks actually Git clones?

前端 未结 10 1233
攒了一身酷
攒了一身酷 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 05:07

    In simplest terms,

    When you say you are forking a repository, you are basically creating a copy of the original repository under your GitHub ID in your GitHub account.

    and

    When you say you are cloning a repository, you are creating a local copy of the original repository in your system (PC/laptop) directly without having a copy in your GitHub account.

提交回复
热议问题