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 |
What is a “conflict” in git and how is it resolved?
What work is restored when the deleted branch is recovered?
What are git stash and git stash drop?
Can you explain the gitflow workflow?
What is the purpose of branching in GIT?
What is the difference between ‘git remote’ and ‘git clone’?
What is “Staging Area” or “Index” in GIT?
What is ‘head’ in git and how many heads can be created in a repository?
What is ‘bare repository’ in GIT?
What commands will you use to bring a new feature to the main branch?
What is the difference between rebasing and merge in git?
What is the function of ‘git checkout’ in git?