git commit 出錯 處理

复制代码

remote: Resolving deltas: 100% (7/7)
remote: Counting objects: 11, done
remote: Processing changes: refs: 1, done    
remote: ERROR: missing Change-Id in commit message footer
remote: Suggestion for commit message:
remote: [ENHANCE][htp images] update htp images(ed1b819c8a6278f8c4726f41a27b24ab52178e15) and htp version(0.9)
remote: 
remote: [PROJECT]
remote: stb-u810
remote: 
remote: Signed-off-by: siangwei.ji 
remote: 
remote: Change-Id: If89233cdef8a20049d6cc7e0e2019ffc7c148dcb
remote: 
remote: Hint: To automatically insert Change-Id, install the hook:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/

复制代码

遇到上面錯誤

先輸入

gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/

在輸入

git commit --amend

進去裡面後,看Change-Id:    有沒有出現,有的話直接存檔離開

然後在直接push就可以囉

 

 

gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/

你可能感兴趣的:(svn,&&,git)