What is the difference between fork, branch, and clone?
Answer / Gaurav Prakash
1. Clone: This creates an exact copy of a remote repository on your local machine. 2. Branch: A branch is a separate line of development within a single repository. It allows you to work on new features or fixes without affecting the main branch (usually 'master' or 'main'). 3. Fork: Forking creates an entirely new copy of a remote repository under your own account. This allows you to make changes and create a separate, independent project.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the syntax for “Rebasing” in Git?
What is the purpose of branching and how many branching strategies can you apply?
What is ‘head’ in git and how many heads can be created in a repository?
How can conflict in git resolved?
What is the difference between git pull and git fetch?
What commands will you use to bring a new feature to the main branch?
What is ‘head’ in git?
How many heads can be created in a repository?
How to resolve a conflict in git?
What is the purpose of branching in GIT?
What is the difference between fork, branch, and clone?
Name a few git commands and explain their usage.