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 |
How git instaweb is used?
What is rebasing syntax in git?
What is the difference between fork, branch, and clone?
Name a few git commands and explain their usage.
How to create tag?
What does commit object contain?
What is the function of ‘git rm’?
What is git reflog?
what is git fork? What is difference between fork and branch? How to create tag?
What is the function of ‘git checkout’ in git?
What is the use of ‘git log’?
How can conflict in git resolved?