Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7874561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:49:47+00:00 2026-06-03T02:49:47+00:00

I am relatively new to Git and I want to know if this is

  • 0

I am relatively new to Git and I want to know if this is correct to do and if there are other ways to remove a feature branch which is merged to master branch. Let me explain with a example:

Let us assume we are working on three tickets (bugs/enhancements) and there are three feature branches one for each ticket each branched off from the Tag v2.0.21. After the development work is done on each ticket, and after sufficient testing, we merge it to the master branch and label this branch as say v2.0.22 and release it to production.

Right after the production release, let us say we figured out one of the ticket (Ticket2) is failing and should be removed. This is what I’ve in mind and I wanted to know if this is a good approach to remove the commits associated with Ticket2.

Like say,

  1. Create a new branch from v2.0.21
  2. Merge Ticket1 (Branch1) and Ticket3 (Branch3) on this new branch
  3. Force push new branch to master.
  4. Tag master as V2.0.23
  5. Release code from v2.0.23 to production.

I hope someone can help me validate this approach and suggest better ways to remove a feature branch that is already merged to master. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:49:48+00:00Added an answer on June 3, 2026 at 2:49 am

    If your merges create a "merge commit", which is often a good idea for this very reason, then you can reverse the changes from a specific feature branch by using the git revert command with the commit ID of the merge commit for that branch.

    The Git documentation includes a detailed note on how to revert a faulty merge which has more information that you may find useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm relatively new to Git, and want to get advice on best practices for
I am relatively new to using Git. This is what I've done so far:
I'm relatively new to Git, but I want to give it a try (vs
I am relatively new to git so this issue might be my own fault.
Let me preface this by saying that I am relatively new to git so
I 'm relatively new to git and and having some problems early on. I've
I'm relatively new javascript, but I am comfortable in other languages. I'm trying to
I am relatively new to Git, and I'm still not very comfortable with it.
Relatively new to mySQL so this is probably an easy one: I have a
Relatively new to using database and for some reason I can't get this 'execute'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.