git 提交的時候,要求加入 changeID,推送失敗的情況下,一般加入 命令行提示的內(nèi)容即可。
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 chenpengsheng@app.kalerm.com:hooks/commit-msg ${gitdir}/hooks/
但是可能是我同步遠(yuǎn)程倉庫的時候,使用的是 
image.png
第二個 而非第一個。
導(dǎo)致我一直推送不成功。
提示如下:
remote: Resolving deltas: 100% (10/10)
remote: Processing changes: refs: 1, done
remote: ERROR: commit 9991391: missing Change-Id in message footer
remote:
remote: Hint: to automatically insert a Change-Id, install the hook:
remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 chenpengsheng@app.kalerm.com:hooks/commit-msg ${gitdir}/hooks/
remote: and then amend the commit:
remote: git commit --amend --no-edit
remote: Finally, push your changes again
remote:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 chenpengsheng@app.kalerm.com:hooks/commit-msg ${gitdir}/hooks/
subsystem request failed on channel 0
scp: Connection closed
百度說要把
gitdir=$(git rev-parse --git-dir); scp -O -P 29418 chenpengsheng@app.kalerm.com:hooks/commit-msg ${gitdir}/hooks/
scp -O 改成這樣,實(shí)際測試,需要改成大寫的O。