I have a project for which I don't have access to the git repository any more. I want to put it in a new repository (on Bitbucket), but when I try to git push -u origin --all
I get ! [remote rejected] master -> master (shallow update not allowed)
for all branches.
Apparently there is a receive.shallowUpdate config option, but how do I set this on the remote side?
Making an unshallow clone isn't an option, as I don't have access to the original repo.
This error message was introduced in git 1.9.0 with commit 5dbd767, and its test shows that message when pushing commits with grafted root.
If by default the remote side (here BitBucket) has left receive.shallowUpdate
to its default value (false), you would need to contact its support.
But first, try and see if applying a git filter-branch -- --all
is enough to transform your repo into one you can push directly (because there would be no more graft nodes)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With