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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:38:01+00:00 2026-06-04T06:38:01+00:00

I use mergetool in git and it pops up opendiff, which I like. I

  • 0

I use mergetool in git and it pops up opendiff, which I like. I review the changes and choose what should go where. I hit “save” then look back at terminal. it asks me Was the merge successful? [y/n] i answer yes, but i don’t know how to say “use the new merge file i just saved! not theirs, not ours, but the one I JUST saved”

Normal merge conflict for 'www/httpdocs/manifest/subsectionmanager-storage':
  {local}: modified file
  {remote}: modified file
Hit return to start merge resolution tool (opendiff): 
www/httpdocs/manifest/subsectionmanager-storage seems unchanged.
Was the merge successful? [y/n] y

Normal merge conflict for 'www/httpdocs/workspace/themes/active/less/common.less':
  {local}: modified file
  {remote}: modified file
Hit return to start merge resolution tool (opendiff): 
www/httpdocs/workspace/themes/active/less/common.less seems unchanged.
Was the merge successful? [y/n] ^[[A
www/httpdocs/workspace/themes/active/less/common.less seems unchanged.
Was the merge successful? [y/n] y
kirkstrobeck:atheycreek kirkstrobeck$ git add .
kirkstrobeck:atheycreek kirkstrobeck$ git add -u
kirkstrobeck:atheycreek kirkstrobeck$ git commit -m 'merged'
[master f6fed72] merged
 12 files changed, 1330 insertions(+), 29 deletions(-)
 mode change 100644 => 100755 www/httpdocs/workspace/data-sources/data.status_all_entries.php
 mode change 100644 => 100755 www/httpdocs/workspace/data-sources/data.twitter.php
 mode change 100644 => 100755 www/httpdocs/workspace/data-sources/data.twitter_latest_entry.php
 create mode 100755 www/httpdocs/workspace/themes/active/less/common.less.orig
 mode change 100644 => 100755 www/httpdocs/workspace/uploads/members/photos/amy_mcreynolds-4fb2e70566fb9.jpg
 mode change 100644 => 100755 www/httpdocs/workspace/uploads/members/photos/rachel-4fb2e793b13bd.jpg
 mode change 100644 => 100755 www/httpdocs/workspace/uploads/members/photos/tim-4fb3da80b15e3.jpg
 mode change 100644 => 100755 www/httpdocs/workspace/xml-importers/xml-importer.twitter.php
 mode change 100644 => 100755 www/httpdocs/workspace/xml-importers/xml-importer.ustream.php
 mode change 100644 => 100755 www/httpdocs/workspace/xml-importers/xml-importer.vimeo.php
 mode change 100644 => 100755 www/mysql/atheycreek_2012-05-16.sql
kirkstrobeck:atheycreek kirkstrobeck$ git stash apply
Auto-merging www/httpdocs/workspace/themes/active/less/common.less
CONFLICT (content): Merge conflict in www/httpdocs/workspace/themes/active/less/common.less
Auto-merging www/httpdocs/manifest/subsectionmanager-storage
CONFLICT (content): Merge conflict in www/httpdocs/manifest/subsectionmanager-storage
kirkstrobeck:atheycreek kirkstrobeck$ 

kirkstrobeck:atheycreek kirkstrobeck$ git config --global --list
user.name=kirkstrobeck
user.email=kirk@strobeck.com
user.user=kirkstrobeck
user.token=fd0010cb7e13a3f9bafe9766cfa81e7c
core.editor=nano
core.excludesfile=/Users/kirkstrobeck/.gitignore_global
github.user=kirkstrobeck
github.token=fd0010cb7e13a3f9bafe9766cfa81e7c
difftool.sourcetree.cmd=/Applications/Kaleidoscope.app/Contents/MacOS/ksdiff -w "$LOCAL" "$REMOTE"
difftool.sourcetree.path=
mergetool.sourcetree.cmd=/Applications/SourceTree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED"
mergetool.sourcetree.trustexitcode=true
difftool.Kaleidoscope.cmd=ksdiff-wrapper git "$LOCAL" "$REMOTE"
difftool.prompt=false
diff.tool=Kaleidoscope
mergetool.keepbackup=true
kirkstrobeck:atheycreek kirkstrobeck$ 
  • 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-04T06:38:03+00:00Added an answer on June 4, 2026 at 6:38 am

    It sounds like opendiff isn’t configured correctly in git. You should have the following line in your

    git config mergetool.<tool>.trustExitCode true
    

    If the custom merge tool correctly indicates the success of a merge
    resolution with its exit code, then the configuration variable
    mergetool..trustExitCode can be set to true. Otherwise,
    git-mergetool will prompt the user to indicate the success of the
    resolution after the custom tool has exited.

    http://www.kernel.org/pub/software/scm/git/docs/v1.7.3/git-mergetool.html

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

Sidebar

Related Questions

I would like to be able to use ediff with git mergetool. I found
Use: The user searches for a partial postcode such as 'RG20' which should then
I know that I should use git add after the conflict is resolved. I've
When I met a conflict, I tried to use git-mergetool to solve it. I
i use the git workflow as described in this blogpost . In short: everybody
For some reason, it looks like git cherry-pick pulls in other commits when flies
I am trying to use p4merge with git but I am getting: Error starting
p4.exe is the perforce command line tool (git/cvs/svn like tool). I am trying to
The typical process we use is: Write code Checkin changes with a description of
Use trap to capture signals like this: i=-1;while((++i<33)); do trap echo $i >> log.txt

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.