2014-03-12 3 views
0

내가 작성한 커밋을 게시하려고하기 전에 rebase해야했지만, 이제는 내 지사가 최신 상태입니다.하지만 제가 검토 할 때는 질문을합니다.게리트 푸시 답변 답변 변경 닫음

[user]$ git review *originbranch* 

**You are about to submit multiple commits. This is expected if you are 
submitting a commit that is dependent on one or more in-review 
commits. Otherwise you should consider squashing your changes into one 
commit before submitting.** 

The outstanding commits are: 

c7d455d A 
372b1b9 B 
27dea57 C 
1e600e2 D 
713422e E 
c84bea9 H 
7e2b81a I 

내가 네 결과가 말한다 :

remote: Resolving deltas: 100% (223/223) 
remote: Processing changes: refs: 1, done  
To ssh://gerrit.hq.md.checkpoint.com:29418/ipssvc 
! [remote rejected] HEAD -> refs/publish/*originbranch*/CHANGE **(change 1298 closed)** 
error: failed to push some refs to 'ssh://URL' 

변화 1298은 D를 변경하려면 참조하고, 실제로 폐쇄하지만 리베이스의 일부입니다,

도움?

답변

1

올바르게 리베이스하지 않았습니다. 그렇기 때문에 git review이 (가) 당신 것보다 더 많은 커밋을 업로드하려고 시도하고 있습니다.

리뷰를 위해 업로드하려는 커밋은 몇 개입니까? 한 (A c7d455d)를 가정하면, 당신은 마스터 지점에 노력하고 있습니다 :

git fetch 
git checkout origin/master 
git cherry-pick c7d455d 

당신은 다음 정상처럼 업로드 할 수 있어야한다.

업로드 할 커밋이 여러 개인 경우 체리를 순서대로 선택하거나 git rebase

을 사용할 수 있습니다.