1

私はgitが初めてです。そして練習として、私はprogram_1、program_2と言う2つのブランチに取り組んでいます。

git branch program_1
ls temp
git branch program_2 # (create program_2 branch)
git checkout program_2
git merge program_1 program_2 # (as i need temp folder in program_2)
# Add some files in temp folder (say 1.c, 2.c)
git add temp/1.c temp/2.c
git commit
# <some explanation reg commit>
git review

ここで私は衝突しています。

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:

9610151 (HEAD, program_2) program_2 submitting for review
8760f55 (program_1) Adding temp to program_1

Do you really want to submit the above commits?
Type 'yes' to confirm, other to cancel: 

では、これはどういう意味ですか?これを解決する方法は?私は何が欠けていますか?

誰でも答えを知ることができますか?

4

1 に答える 1

0

git review標準の git の一部ではないため、これに答えるのは開発者次第です。

しかし、レビューのために 2 つ以上のコミットを gerrit にプッシュすることは何も変なことではありません。私はいつもそうしています。

何が起こるかというと、それらの間に依存関係があり、レビューされる順序に関係なく、その順序でコミットされます。

これは、相互に依存する小さな論理コミットを処理するための最良の方法です。

于 2015-04-07T06:38:10.930 に答える