Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between fork, branch, and clone?



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

Post New Answer

More Git Interview Questions

How is git instaweb used?

0 Answers  


Describe the branching strategies you have used.

1 Answers  


What is the purpose of branching and how many branching strategies can you apply?

1 Answers  


What is git fork?

1 Answers  


How many heads can be created in a repository?

1 Answers  


What is another option for merging in git?

1 Answers  


How can you fix a broken commit?

1 Answers  


What is the difference between fork, branch, and clone?

1 Answers  


How will you know in git if a branch has already been merged into master?

1 Answers  


What is subgit and why is it used?

1 Answers  


How to create tag?

1 Answers  


What does ‘hooks’ consist of in git?

1 Answers  


Categories