$ git push origin dev_1:feat/i18n
git push log
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 20.44 KiB | 872.00 KiB/s, done.
Total 5 (delta 4), reused 1 (delta 1)
remote: Start Git Hooks Checking [FAILED]
remote: Error: Binary file '[mypath]__init__.pyc' is forbidden
To [mypath]
! [remote rejected] dev_1 -> feat/i18n (pre-receive hook declined)
error: failed to push some refs to '[mypath]'
I don't rewite the pyc file in my local branch, I just cloned the project and changed a file that is not related to pyc.
I try git checkout --ours[mypath]__init__.pyc
I get the output:
Updated 0 paths from the index
Then git push agian, this error still exists.
I solved it.
The cause of this problem is that the feat/i18n
branch remote repository does not exist,then this branch will verify all files.
Does not support pyc file submission is the access control configured after I submitted this code, so I can push branch in first time.
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.