我正在使用git來提交我的分支。 我有這個問題推的git:Git commit問題
$ git push origin HEAD:refs/for/master
Counting objects: 117, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (29/29), done.
Writing objects: 100% (29/29), 2.79 KiB | 0 bytes/s, done.
Total 29 (delta 17), reused 0 (delta 0)
remote: Resolving deltas: 100% (17/17)
remote: Processing changes: refs: 1, done
remote: ERROR: missing Change-Id in commit message footer
remote: Suggestion for commit message:
remote: Merge branch 'master' of ssh://s3.testing.com:29418/testing into m
asoud
remote:
remote: Change-Id: I12be02f75b42c4304591835dffe8d7e8aa01f761
remote:
remote: Hint: To automatically insert Change-Id, install the hook:
remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
remote:
remote:
To ssh://[email protected]:29418/telewebion
! [remote rejected] HEAD -> refs/for/master (missing Change-Id in commit messag
e footer)
error: failed to push some refs to 'ssh://[email protected]:29418/
testing'
我想這些東西太:
scp -p -P 29418 [email protected]_gerrit_address:hooks/commit-msg .git/hooks/
和
git rebase masoud -i
和
git commit --amend
,但我仍然得到同樣的錯誤。
你的git存儲庫比默認的有更嚴格的規則。你必須遵守他們才能推動。仔細閱讀以「remote:」開頭的所有行。 –