Try uninstall git and reinstall it. The latest current version of git is the version 2.47.0
Here is how you can reinstall git :
sudo apt-get purge git sudo apt-get autoremove sudo apt-get install git
After that you can try again to push.