What is the main purpose of forking a repository in Git?

  • Contribute to someone else's project
  • Create a backup of the repository
  • Merge two branches
  • Undo the last commit
Forking a repository in Git is primarily done to contribute to someone else's project. It allows you to create a personal copy of a repository on which you can make changes without affecting the original project. You can later submit pull requests to propose changes to the original repository.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *