Some Time there is a shallow update not allowed issue in your cloned GIT repo.
This means that you have to unshallow your repository. To do so you will need to add your old remote again.
git remote add origin <path-to-old-remote>
After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).
git fetch --unshallow origin
And now you should be able to push into your new remote repository.
If you have not access to old repository, you can use
git rebase -i --root
pick
toedit
git commit --amend --no-edit
git rebase --continue
After your git will think what is not shallow.
source. How to fix shallow update not allowed in git