Recently, the company warehouse changed from Gitlib to Gerrit, and you need to get the boss to review the submitted code before you can push it. This error occurred the first time it was used.
record, also convenient to check in the future:
Step1: copy this sentence to the terminal (on your own terminal)
gitdir=$(git rev-parse –git-dir); SCP – p – p 29418 102001111 @192.168.132.200: hooks/commit – MSG ${gitdir}/hooks/
step2: paste directly to the terminal (without modifications exit row)
the git commit – amend
step3: paste to the terminal (dev branch can be amended as required)
git push origin HEAD: refs/for/dev
Reference:
https://blog.csdn.net/weixin_33910385/article/details/92457771
Read More:
- [Solved] ERROR: commit 60acc70: missing Change-Id in message footer
- How to cancel the commit, how to cancel the commit after git commit, and how to change the submitted content
- !!!! You must write Log Message,at least 5 characters. Commit aborted !!!!
- [FAQ] after git merge, the push to Gerrit fails, indicating no new changes?
- How to solve the problem of “please enter a commit message to explain why this merge is necessary” when git merges branches?
- Common solutions to errors in checkout or commit of SVN
- Solve “error: failed to commit transaction” in arch Linux
- Change the path in the user directory in Chinese Ubuntu to English
- Mybatis openSession.commit () manually submit data and openSession.commit (true) automatically submit data
- Error 1064 in MySQL password change
- How to Change Local Path in TFS
- [Git] git pull pull remote git push to remote git commit submit reject
- Git commit encountered error: pathspec (Fixed)
- How do I change the default background color of all FIGURE objects created in MATLAB
- Solution of fileuriexposedexception for Android 7.0 behavior change
- GitHub desktop upload file error commit failed – exit code 1 received
- The COMMIT TRANSACTION request has no corresponding BEGIN
- pathspec commit did not match any files known to git
- An error occurred while loading commit signatures
- Spring failed to commit the transaction