If you’re using studio pro.
Try signing out and then signing in again.
Then attempt to commit / check history again.
I did it but still not able to do anything...
Try to stop the server and restart the server again.
I already did it but it is still not working...
Are you sure you have access to the repository? You can check that by opening the link under team server in Mendix and see if opening it with your credentials work.
Also, sometimes I’ve seen this happens when you have some firewall setting which prohibits you from accessing this. Check if there is any such configuration