You can block a user to deny them access to your activity and repositories, and to prevent them from sending you notifications.
At the time that you block a user:
- The user stops following you
- The user stops watching your repositories
- The user's stars and issue assignments are removed from your repositories
- The user is removed as a collaborator on your repositories
- You're removed as a collaborator on their repositories
After you've blocked a user, they cannot:
- Send you any notifications, including by @mentioning your username
- Follow you or see your content in their activity feed
- Invite you as a collaborator on their repositories
- Cross-reference your repositories in comments
- Fork, watch, or star your repositories
In repositories you own, blocked users also cannot:
- Open issues or send pull requests
- Comment on issues, pull requests, or commits
- Add or edit wiki pages
The user is not directly notified that you've blocked them.
Tip: If you're blocking a user because of a heated conversation, consider locking the conversation so only collaborators can comment.
You can block a user in your account settings or from the user's profile page.
Blocking a user in your account settings
- In the upper-right corner of any page, click your profile photo, then click Settings.
In your user settings sidebar, click Blocked users.
Under "Block a user", type the username of the user you'd like to block, then click Block user.
Blocking a user from their profile page
Visit the user's profile page.
In the left sidebar, under the user's profile picture, click Block or report user.
Click Block user.