'Fatal: cherry-pick failed' with Git -
i working on branch x
. made commit , pushed it.
then wanted cherry-pick
branch y
. due unmerged files present, got following message:
error: 'cherry-pick' not possible because have unmerged files. hint: fix them in work tree, hint: , use 'git add/rm <file>' hint: appropriate mark resolution , make commit, hint: or use 'git commit -a'. fatal: cherry-pick failed
now, want delete branch y
, re-create branch y
, want manually edit file trying cherry-pick.
currently, i'm unable delete branch working branch. cannot checkout
other branch. i'm getting following error on trying change branch.
mod/assign/locallib.php: needs merge error: need resolve current index first
i need delete branch y
, without losing on branch x
.
edit #1
i edited file mod/assign/locallib.php
on doing git status
, get:
# on branch mdl-38267_24 # unmerged paths: # (use "git add/rm <file>..." appropriate mark resolution) # # both modified: mod/assign/locallib.php #
what file should add in git add ..
?
since have edited conflict file, need
git add mod/assign/locallib.php
then
git cherry-pick --continue
Comments
Post a Comment