You forgot to tag last week's release and need to tag it now.
BeginnerScenarioBranching Strategies and Releases
Answer
Situation read → A tag can be created on any past commit.
What I'd do →
- Find the deployed commit:
git log --oneline --since="10 days ago"or the SHA in your deploy record. git tag -a v2.4.0 <sha> -m "Release 2.4.0".git push origin v2.4.0.- Back-fill the GitHub release if needed.
Why → Tags point at commits, not at "now".
Interview tip → Always confirm the SHA against what was actually deployed.
More on Branching Strategies and Releases
An eight-person team deploys several times a day. Which branching strategy do you recommend?IntermediateWhen would you choose GitFlow over trunk-based development?IntermediateIn trunk-based development, a feature will take three weeks. How do you merge it daily without exposing it?IntermediateYou are cutting a release. How do you manage the release branch and late fixes?IntermediateShould releases use lightweight or annotated tags?BeginnerA release tag was placed on the wrong commit and has been published. What do you do?Intermediate