make sure you have enough permissions to push to the repository if you do then try running these commands
git config --global user.email youremail@domain.
git config --global user.name username
git config --global user.password yourpassword
hope this helps someone