hi,
I am a newbie in using *git*. So any help in the right direction would help 
a lot.

I am working on an issue, on my local repository, and I found that this bug 
was fixed in the kernel.org repository.
So now i am trying to pull in (cherry-pick) this fix (commit-id) from the 
kernel.org branch and submit it to my local gerrit. And I am trying to 
maintain the commit message of the commit from kernel.org branch.
When i try to push this fix on my local gerrit, i face the following error:
Error:
To ssh://<username>@123.321.12.1:1234/mirror-sec/asdfgt/hjks
 ! [remote rejected] <*branch>* -> refs/for/*<branch>* (not Signed-off-by 
author/committer/uploader in commit message footer)
error: failed to push some refs to 
'ssh://<username>@123.321.12.1:1234/mirror-sec/asdfgt/hjks'

Following are the steps that I followed:
1. did, *git remote add 
'tag' git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux*
2. did, *git fetch 'tag'*
3. searched for the commit, *git log 'tag'/master*
4. cherry-picked the specific commit-id needed, *git cherry-pick 
<commit-id>*
5. did, *git commit --amend*, to get a new change-id for the cherry-picked 
commit-id
6. did a git push, so submit the change to the local gerrit. *git 
push ssh://<username>@123.321.12.1:1234/mirror-sec/asdfgt/hjks 
<branch>:refs/for/<branch>*

 when i followed the above steps mentioned, I face the above error 
mentioned.

Is there anything that I am doing wrong? Any information that I am 
overlooking would help a lot.

Thanks, 
Chin.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to