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 7828721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:27:30+00:00 2026-06-02T10:27:30+00:00

This is a newbie question. I have 2 branches, branch_A and branch_B . I

  • 0

This is a newbie question. I have 2 branches, branch_A and branch_B. I am in branch A and do a merge with this command:

git checkout branch_A
git merge --commit -m "my commit" branch_B

If there is no conflict, it automatically does the merge and updates the branch_A to new commit. But branch_B is still in same place.

How can I update the branch_B to point in same place than branch_A?

  • 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-02T10:27:32+00:00Added an answer on June 2, 2026 at 10:27 am

    This is a bit unusual, since most of the time you don’t need a branch you’ve merged. So ask yourself if it is really what you want.

    If it is, the simplest solution is to merge branch_B with branch_A. It won’t create a merge commit, because it can be fast-forwarded, but it will point to the same place as branch_A. Commands are:

    git checkout branch_B
    git merge branch_A
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a real newbie question. I have simple app that selects a picture
A newbie question,really. Suppose I have a html table like this: <div id=div1> <table
This is a Fluent NHibernate newbie question, so bear with me. I have a
Newbie question. I have Django models that look like this: class Video(models.Model): uploaded_by =
Sorry about this newbie question. Is there a way to execute multiple sentences at
This is a newbie question in R. If you have two libraries in R
this must be a newbie question. I have this method in a controller: public
This is a pretty newbie question- please know I'm aware of that. I have
This is a newbie question: I have a pre-existing function that I would like
After asking this perl newbie question , I have a perl newbie follow-up. I

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.