Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hint: after resolving the conflicts, mark the corrected paths

git sometimes gives me this message on a conflict (during a revert or cherry pick)

hint: after resolving the conflicts, mark the corrected paths 

What does this mean?

like image 793
paullb Avatar asked Jun 11 '15 02:06

paullb


People also ask

How do I mark a corrected path in git?

hint: after resolving the conflicts, mark the corrected paths hint: with `git add <paths>` or `git rm <paths>` hint: and commit the result with `git commit`. As if running " git commit " to conclude the resolution of this single step were the end of the story.

How do you resolve conflicts after cherry-pick?

Resolve the conflicts. Resume: Depending on the command that was executed (e.g. rebase, merge, cherry-pick), you will usually need to add the files and call something like rebase --continue or cherry-pick --continue.

How do I undo a merge conflict?

On the command line, a simple "git merge --abort" will do this for you. In case you've made a mistake while resolving a conflict and realize this only after completing the merge, you can still easily undo it: just roll back to the commit before the merge happened with "git reset --hard " and start over again.

Is it possible to get merge conflict during git cherry-pick?

Yes, at least with the standard git setup. You cannot cherry-pick while there are conflicts. Furthermore, in general conflicts get harder to resolve the more you have, so it's generally better to resolve them one by one. That said, you can cherry-pick multiple commits at once, which would do what you are asking for.


2 Answers

This means that you need to explicitly tell Git that you've resolved a conflict at each file or folder (that is path).

Showing the list of yet unresolved conflicts:

git status 

Marking a conflict as resolved.

File or all files in a folder should be left and all conflicts are resolved:

git add 

File or folder should be removed:

git rm 

Next step:

git commit 
like image 152
Nick Volynkin Avatar answered Sep 18 '22 22:09

Nick Volynkin


because some files are in conflict ,you can type git status to find out what is the file with conflict, and after the conflict was sovled ,just git commit -m sth log ,at last git cherry-pick your-commmit-id . see details http://wiki.koha-community.org/wiki/Using_Git_Cherry_Pick#Resolve_conflicts

like image 32
xirong Avatar answered Sep 17 '22 22:09

xirong