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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.