Why is git-cherrypick saying nothing to commit?
Answer a question I searched a lot for the below issue but couldn't get any substantial info. I created a temporary branch 202116 and am trying to do a cherrypick of gerrit 202116 and I get the below
Answer a question
I searched a lot for the below issue but couldn't get any substantial info.
I created a temporary branch 202116 and am trying to do a cherrypick of gerrit 202116 and I get the below message. Why am I not able to cherry-pick this commit and why am I getting this error?
<>git fetch ssh://company@company.com:29418/platform/vendor/company-proprietary/radio refs/changes/25/202116/1 && git cherry-pick FETCH_HEAD
From ssh://company.com:29418/platform/vendor/company-proprietary/radio
* branch refs/changes/25/206025/1 -> FETCH_HEAD
# On branch 202116
# You are currently cherry-picking.
# (all conflicts fixed: run "git commit")
#
nothing to commit, working directory clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Answers
It's exactly what it says: the changes you're trying to cherry-pick are already wholly contained in the branch you're on. I.e. the result of the cherry-pick is no changes. You can create an empty commit with the --allow-empty
flag to indicate that you attempted to cherry-pick, but there were no changes to pull in.
更多推荐
所有评论(0)