This is my code in pipeline:
- step: name: Sync GitHub Mirror
image: alpine/git:1.0.26
services:
- docker
script:
- git remote add github "git@github.com:[yourname]/[your repo].git"
- git checkout $BITBUCKET_BRANCH
- git pull
- git push github $BITBUCKET_BRANCH
But pipeline failed:
<span>+ git push github $BITBUCKET_BRANCH</span>
<span>Warning: Permanently added the ECDSA host key for IP address '140.82.114.4' to the list of known hosts.</span>
<span>remote: fatal: did not receive expected object 205375ad4df64d611dcd802c66cad202f89b5370 </span>
<span>error: remote unpack failed: index-pack failed</span>
And aslo i dont fetch<span> fingerprint to host addres (github.com) in ssh known hosts in setting project:</span>
Bad request
The request body contains invalid properties
Where is problem and how is solutions. Thanks.