I have a script that cherry-picks a commit using shelljs
.
Here is my LOC that does cherry-picking using shelljs
.
shell.exec('git cherry-pick commitid -X theirs');
Note: commitid = sha of commit I want to cherry-pick.
shelljs is throwing the following error:
fatal: bad object: commitid
e.g
fatal: bad object: 7854484884 (commitid)