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 difference between fork and branch? How to create tag?



What is difference between fork and branch? How to create tag?..

Answer / Lalit Chahal

In Git, a fork represents a copy of a remote repository under a new owner, while a branch is a separate development line in a single repository. To create a tag, use the following command: `git tag <tag_name>`n- To create an annotated tag with a message, use `git tag -a <tag_name> -m '<commit_message>'`. You can list all tags using `git tag`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

What is a “conflict” in git and how is it resolved?

1 Answers  


What work is restored when the deleted branch is recovered?

1 Answers  


What are git stash and git stash drop?

1 Answers  


Can you explain the gitflow workflow?

1 Answers  


What is the purpose of branching in GIT?

1 Answers  


What is the difference between ‘git remote’ and ‘git clone’?

1 Answers  


What is “Staging Area” or “Index” in GIT?

1 Answers  


What is ‘head’ in git and how many heads can be created in a repository?

1 Answers  


What is ‘bare repository’ in GIT?

1 Answers  


What commands will you use to bring a new feature to the main branch?

1 Answers  


What is the difference between rebasing and merge in git?

1 Answers  


What is the function of ‘git checkout’ in git?

1 Answers  


Categories