1. Which pair correctly deletes a remote tag v1.0.0 from origin after deleting it locally?
Local delete with `git tag -d`; remote delete with a push of an empty ref to the tag.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Git & Version Control · Question Set
Tags, Releases & Versioning (SemVer) in Git interview questions for placements and exams.
Questions
13
Included in this set
Subject
Git & Version Control
Explore more sets
Difficulty
Mixed
Level of this set
Go through each question and its explanation. Use this set as a focused practice pack for Git & Version Control.
Local delete with `git tag -d`; remote delete with a push of an empty ref to the tag.
Tags mark important points in history (e.g., releases). Annotated tags store metadata (tagger, date, message, signature) and are ideal for official releases; lightweight tags are simple pointers for personal bookmarks.
`-a` creates an annotated tag and `-m` sets its message.
Pushing a specific tag uses `git push <remote> <tag>`; `--tags` pushes all tags.
MAJOR → incompatible, MINOR → new compatible features, PATCH → bug fixes.
Valid format: MAJOR.MINOR.PATCH-PRERELEASE+BUILD; leading 'v' is not part of SemVer core.
Highlights, breaking changes, migration steps, bug fixes, known issues, contributors, and links to diffs/PRs. Keep crisp and user-centric.
`-s` signs the tag with your configured GPG key for provenance.
Use SemVer for GA (e.g., vX.Y.Z), suffix `-rc.N`/`-beta.N` for candidates, `-hotfix.N` for urgent patches, and build metadata for CI artifacts. Protect tags, sign GA tags, auto-generate notes via CI.
`A..B` shows commits reachable from B and not A; `...` is symmetric difference.
A release is metadata built around a tag: rich notes, attachments (artifacts), checksums, and visibility controls—useful for distributing binaries and changelogs.
`git describe` finds the nearest tag; `--abbrev=0` prints only the tag name.
Automate SemVer bumps on protected branch and create annotated (optionally signed) tags with release notes.
For complete preparation, combine this set with full subject-wise practice for Git & Version Control. You can also explore other subjects and sets from the links below.