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

  • Home
  • SEARCH
  • 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 1037785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:53:34+00:00 2026-05-16T14:53:34+00:00

I remember that for about a year ago I did some merges that resulted

  • 0

I remember that for about a year ago I did some merges that resulted in the commit messages being Merge branch 'Name_of_branch' on the remote repository.

From what I remember it would happen if I rebased all commits in a branch and then merged it to master and then pushed to remote repository.

But now I can’t reproduce it with git-1.7.2.2.

Have it been fixed? Or can someone explain how this happens, and perhaps how to avoid it?

  • 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-05-16T14:53:35+00:00Added an answer on May 16, 2026 at 2:53 pm

    That’s a default merge commit message. It doesn’t take anything special to get it – just do any nontrivial merge into master:

    - o - o - X (master)
       \     /
        o - o (topic)
    

    The default commit message for commit X will be “Merge branch ‘topic'”. If you merge into a branch other than master, the default message is "Merge branch '<merged-branch>' into '<branch>'".

    I’m not sure why you’re asking about “fixing” and “avoiding” this. It’s a very reasonable default message for a merge commit. If you’d like a more detailed merge commit message, you’re certainly welcome to provide one. (The two primary ways are to use git merge --no-commit followed by git commit, or git merge followed by git commit --amend to edit the message.)

    Perhaps you’re used to doing only fast-forward merges? (Those are trivial merges, where the commit you’re merging has your current branch as ancestor, so all git has to do is move the branch forward through history.) Those don’t generate merge commits, so there’s no commit message.

    (By the way, pushing has nothing to do with this – all it does is copy information from one repo to another. It doesn’t ever create commits.)

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

Sidebar

Related Questions

about a year ago I stumbled across a nice feature in Java that I
I remember reading a post about a year or so ago by Scott Hanselman
I'm familiar with some mnemonic/memorization techniques for about a year. I think that this
About a year ago I placed some media and some web pages under my
I know that Hpricot is still a standard but I remember hearing about a
About half year ago I decided to improve my programming efficiency, so I learned
I remember from 3 years ago that it was an absolutely huge pain to
I distinctly remember that, at one time, the guideline pushed by Microsoft was to
I read somewhere (I can't remember where) that it is possible, in certain circumstances,
I can't find a reference to it but I remember reading that it wasn't

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.