Seeing this error on first git push
of a patch to a freshly cloned github project:
! [remote rejected] master -> master (shallow update not allowed)
error: failed to push some refs to 'https://github.com/org/myproject.git'
How to fix it and what may be the cause?
This question is NOT related to Remote rejected (shallow update not allowed) after changing Git remote URL as someone suggested.