A user forked one of my github repositories and started committing on its fork. Nevertheless, some of his commits were pushed to my repository despite him not being among the collaborators of the repo.
I just know this user used github web interface to commit his changes to the repository.
I have managed to bring back my repository before he started modifying it using:
git push -f origin main
to overwrite the remote repository with my local one but I would like to prevent this from happening in the future.
Following what suggested in this question I have checked my github global configuration using git config --list
but my user.name
and user.email
are correct. Any idea?
Thanks for any help!