You can block a user to deny them access to your activity and repositories, and to prevent them from sending you notifications.
You can block a user in your account settings or from the user's profile. GitHub will not notify the user when you block them. If you want to avoid contributing to the same project as someone you've blocked, you can choose to display a warning on any repositories with prior contributions from a blocked user. For more information, see Blocking a user in your account settings. You may still see the activity of blocked users in shared spaces and blocked users can delete their existing content.
Tip
If you're blocking a user because of a heated conversation, consider locking the conversation so only collaborators can comment. For more information, see Locking conversations.
When you block a user:
After you've blocked a user, they cannot:
In repositories you own, blocked users also cannot:
Visit the user's profile page.
In the left sidebar, below the user's profile information, click Block or Report.
Optionally, add a note to describe why a user was blocked. The note will only be visible to you.
Click Block user.
Note
If you're being harassed, visit GitHub Support to report abuse. GitHub does not tolerate abuse. For more information on GitHub's policies, see our Community Guidelines.