I'm cannot push to a remote branch of a BitBucket repository, getting below error.
remote: You can only push your own commits in this repository
remote: Commit 0123456789abcdef was committed by my_username<my_email@company.com>
To ssh://git@bitbucket:7999/my_project/my_repo.git
! [remote rejected] my_branch -> my_branch (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@bitbucket:7999/my_project/my_repo.git'
git config
has the correct email and usernameError in git: You can only push your own commits in this repository asked the same question, where one solution was to disable the Verify Commit hook. However, that's just a workaround, and I do intend to have the hook continue running.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.