I accidentally followed someone on Github. Then I unfollowed them within 2 minutes, will the person receive any notification?
No. I have set my notification settings such that I receive all types of notifications. Despite this, I have never received a notification about someone following me (despite seeing followers in my followers list). The only way to tell if someone is following you is to check the list on your profile page.