Git click on new remote after small cloning

Can this be done? I have several branches and quite a few commits, and I try git push - --all origin but I get shallow update not allowed .

Thanks in advance.

+6
source share
1 answer

No, It is Immpossible.

The presence of a shadow clone means that they are aging in your repository, are "reverse hanging", that is, they indicate parent commits that you do not have. This makes your data structure invalid, since git usually provides a complete history - it hushes up the problem as you instructed it to make a shallow clone, but still.

You can only click on remotes that already have those commands that you don’t have.

So your solution is to disconnect your clone, and then click on the new repository. Alternatively, if you want to avoid the whole story in your repositories, you can create a new repository from your own upstream (which I hope is not shallow) without touching your own repository, and then insert it.

0
source

Source: https://habr.com/ru/post/980063/


All Articles