I want to mirror clone a Bitbucket Repository to another Bitbucket Repository. I manage this with a shell script, which does the following:
git clone --mirror &l
Thanks to Ivan.
His command solved my Problem. I only had to add the "-r" parameter to xargs to react on empty greps:
git show-ref | cut -d' ' -f2 | grep 'pull-request' | xargs -r -L1 git update-ref -d