Git submits an error to Gerrit because the changeid is lost
Solution: copy the whole line prompted in it and enter:
gitdir=$(git rev-parse –git-dir); scp -p -P 29418 [email protected] :hooks/commit-msg ${gitdir}/hooks/
Note that you must use git bash command window, because the following error messages may appear if you use vscode (special symbols are not recognized by the terminal here)
Then execute: git commit — amend
Done!
Similar Posts:
- Git missing Change-Id in commit message footer [How to Solve]
- [Solved] Git review Error: Errors running git rebase -i remotes/gerrit/master
- VSCode git commit Error: No such file or directory [How to Solve]
- Solve the GIT commit error and bypass the code check
- Sourcetree / git solves the problem of pre commit hook failed
- [Solved] VS Code Error: Running the contributed command: ‘_workbench.downloadResource‘ failed
- [Solved] Git Error: pre -commit hook failed (add –no-verify to bypass)
- [Solved] Pull is not possible because you have unmerged files
- Git review :error: unpack failed: error Missing tree
- Mac open terminal error – bash:: command not found