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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:15:30+00:00 2026-05-25T12:15:30+00:00

I would like to do a git merge to plough the work of one

  • 0

I would like to do a git merge to plough the work of one branch back into another.

However, since a lot has been done and I’m going to do a no-fast-forward merge I would like the commit to contain extensive information about what’s in the merge.

If I were doing a normal commit I could use the -m flag and an editor would be fired up for me to put the details into (edit this is incorrect – see below). However if I use the -m flag during commit it simply tells me that the message requires content:

$ git merge development --no-ff -m
error: switch `m' requires a value

Since I have a fairly large merge message, I would prefer an editor rather than a single line string. How can I get that though?

EDIT

Although the answers have covered my question I realised that using the -m flag during a normal commit does not in fact fire up the editor (although -a does if you’re creating a tag). The only way I’ve to get the editor during a normal commit it to simply type commit with no other flags or options.

  • 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-25T12:15:31+00:00Added an answer on May 25, 2026 at 12:15 pm

    Use the --no-commit flag, and then type git commit – you’ll be able to edit the message then:

    git merge development --no-ff --no-commit
    git commit
    

    Alternatively, if you’ve already done the merge, you can amend the merge commit to change its message with:

    git commit --amend
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get Already up-to-date messages when trying to merge one branch, 'feature_1', into another,
I know about git diff branch1 branch2 . However, I would like to see
I would like to do the following in a script: git merge --squash someBranch
In a 'git merge ' I would like any difference, even if not normally
I would like to clone a git project (from github, say), and have the
I would like that whenever I run git diff or git show it silently
I would like to inspect any code changes after doing a git pull .
I would like to know if there is a clean way to do git-svn
I have cloned ~60 git repositories and I would like to update the most
I've been using git for about a year and would like to use tagging

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.