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.
Loading...
Related Quiz
- Which Git command is used to create a copy of an existing repository on your local machine?
- Code reviews are often performed on the changes in a _______ before they are merged into the main branch.
- What is the recommended approach to resolving complex merge conflicts in a collaborative project?
- The ________ model in Git is ideal for open-source projects where contributors do not have direct write access to the main repository.
- In what scenario is rebasing preferred over merging in Git?