Yes, it could be okay to commit there. At least it's not public. As long as you really trust the cloud service hosting your repository, then it should be fine. No guarantees, though. It's a risk you take when you put something in the internet.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
is it ok to commit on private repos?
Yes, it could be okay to commit there. At least it's not public. As long as you really trust the cloud service hosting your repository, then it should be fine. No guarantees, though. It's a risk you take when you put something in the internet.