I'm configuring BitBucket pipelines to mirror the repository to Github:
clone:
depth: full
pipelines:
default:
- step:
script:
- git push --mirror git@github.com:MyOrg/mirror-repo.git
But I want the commit history not the be available in Github. The history is for BitBucket and just a dump of the repo should be added to Github. What flags can I add to the git command to achieve this?