[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
After a git merge and manual correction of a conflict, how do I tell git
From: |
Alan Mackenzie |
Subject: |
After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed? |
Date: |
Tue, 26 May 2015 22:39:28 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hello, Emacs
It's git misery time again. :-(
I did a git stash, followed by git merge, followed by git stash pop.
This caused a conflict in .gitignore, which I repaired by editing
that file.
I think (but I'm not sure), I need somehow to tell git that the file has
been fixed. The git equivalent of 'bzr resolve'. I can't find any
documentation telling me how to do this, or alternatively that it's not
needed.
git status returns the following obscure "information":
On branch master
Your branch is up-to-date with 'origin/master'.
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: .gitignore
. I don't think I want to "unstage" anything (whatever that might
mean) - IIUC, the suggested recipe would discard all my changes. I think
I might want to "mark resolution" (assuming this gobbledegook means
"mark <file> as resolved"), but the suggested recipe, as far as I am
aware, doesn't "mark resolution", instead it moves a file into a list of
files to be committed in the (?near) future.
Do I actually need to tell git that the merge conflicts in .gitignore
have been fixed? If so, how do I do this? There doesn't appear to be a
'git resolve' command.
Where is this 'bzr resolve' equivalent documented? I now have git
2.3.6, and it now comes with an info manual, and all its man pages
stuffed into another info document, which is a great improvement. I
still can't find what I need, though.
Thanks in advance for the help.
--
Alan Mackenzie (Nuremberg, Germany).
- After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?,
Alan Mackenzie <=
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Dmitry Gutov, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Kelvin White, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Alan Mackenzie, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Dmitry Gutov, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Kelvin White, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Kelvin White, 2015/05/26
- Message not available
- After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Kelvin White, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Tom Jakubowski, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Eli Zaretskii, 2015/05/26
- Re: After a git merge and manual correction of a conflict, how do I tell git the conflict is fixed?, Andreas Schwab, 2015/05/27