Home > Software engineering >  Git: Fork vs Mirror
Git: Fork vs Mirror

Time:08-12

What's the difference between creating a mirror and a fork. Both are copies of a repo, but is one a shallow copy (mirror) and one a deep copy (fork)? Just trying to get a better understanding for migrating a repo.

CodePudding user response:

  • A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project. Usually a fork knows about its source repository, usually called upstream. This fact allows for sending pull requests (changes between upstream repo and the fork) back to upstream repo.
  • A mirror allows to maintain a copy of repository without forking it
  • Related