github - GIT cherry-pick giving error -
i trying cherry-pick 1 of commit using sha branch giving error.
say on branch x
, running command git cherry-pick as560aad0138....
in terminal.
the error got this;
error: commit as560aad0138.... merge no -m option given. fatal: cherry-pick failed
the answer right there, in error message.
from man git cherry-pick
:
[...] -m parent-number, --mainline parent-number
usually cannot cherry-pick merge because not know side of merge should considered mainline. option specifies parent number (starting 1) of mainline , allows cherry-pick replay change relative specified parent. [...]
Comments
Post a Comment