Bitbucket管道将代码推送到另一个repo



我在bitback有2个存储库,存储库A和B。我需要当有人在存储库a中提交时,管道启动,并将我的代码复制到存储库B。现在使用了这样的管道。但是我得到一个错误。

error: src refspec devops-test does not match any.
error: failed to push some refs to

管道

- date > test.txt  
- git remote add two https://login:passwd@repo.git
- git add .
- git commit -m "push [scip ci]"
- git push two devops-test --force
clone:
depth: full 
pipelines:
branches:
uat:
- step:
script: 
- echo "sonar reports"
- apt install -y git
- git remote add new https://priya400:yxv7WQjgDJRZZaJNBndC@bitbucket.org/bbc-test4/firstrepo.git
- touch test111.txt
- git add .
- git commit -m "push to remote"
- git push new aws/client:devops-test --force```

最新更新