All posts
By ··6 min read

How to See Who Unfollowed You on GitHub

GitHub doesn't notify you about unfollows. Here's how to track who unfollowed you, find who doesn't follow back, and stay safe with unfollower apps.

GitHubFollowersGitHub CLI

GitHub doesn’t tell you when someone unfollows you. There’s no notification, no email and no history, and your follower list only shows who follows you right now. To see who left, you need a snapshot of your followers from before, so you can compare it with today’s list. This guide shows how to do that with a few lines of shell, how to find people who don’t follow you back, and what to watch out for with third-party “unfollower” apps.

How to see your GitHub followers

Open your profile and click the followers count under your avatar, or go straight to:

https://github.com/YOUR_USERNAME?tab=followers
https://github.com/YOUR_USERNAME?tab=following

That works for anyone’s profile, not just yours: follower lists on GitHub are public. It’s fine for a quick look, but with more than a page of followers it’s not a practical way to spot who disappeared. For that, use the API.

Get your follower list from the command line

The easiest route is the GitHub CLI (gh). Once you’ve run gh auth login, this prints every follower, one username per line:

gh api users/YOUR_USERNAME/followers --paginate --jq '.[].login'

--paginate follows every page of results, so it works for any follower count. No CLI? Plain curl works too, without a token, as long as you have fewer than 100 followers (one page):

curl -s "https://api.github.com/users/YOUR_USERNAME/followers?per_page=100" \
  | grep '"login"'

Unauthenticated requests are limited to 60 per hour, so for big lists stick with gh, which uses your login and gets a much higher limit.

See who unfollowed you

Because GitHub keeps no history, you have to start one. Save this as followers.sh, put in your username, and run it whenever you want to check. The first run saves a snapshot; every run after that compares against the last one.

#!/bin/sh
USER=YOUR_USERNAME

gh api "users/$USER/followers" --paginate --jq '.[].login' | sort > followers-new.txt

if [ -f followers.txt ]; then
  echo "Unfollowed you:"
  comm -23 followers.txt followers-new.txt
  echo "New followers:"
  comm -13 followers.txt followers-new.txt
fi

mv followers-new.txt followers.txt

comm compares two sorted lists: -23 keeps names that were only in the old list (people who left), and -13 keeps names only in the new one (people who joined).

One thing to know before you take it personally: a name also drops off the list when that person deletes their account, renames it, or gets suspended. Check their profile link before assuming they unfollowed.

Run it automatically

If you want a daily record without remembering to run anything, add the script to a cron job on your machine, or run it from a scheduled GitHub Actions workflow that commits followers.txt to a private repository. Then your git history is your follower history, and git log -p followers.txt shows every change with a date.

Find who doesn’t follow you back

The same trick works for comparing who you follow with who follows you:

USER=YOUR_USERNAME
gh api "users/$USER/following" --paginate --jq '.[].login' | sort > following.txt
gh api "users/$USER/followers" --paginate --jq '.[].login' | sort > followers.txt

echo "You follow them, they don't follow you:"
comm -23 following.txt followers.txt

echo "They follow you, you don't follow them:"
comm -13 following.txt followers.txt

The first list is mostly people whose work you follow for good reasons: maintainers, authors of tools you use, developers you learn from. Not following back is normal, so don’t read much into it. The second list is more useful. It’s people who already showed interest in your work, and a few of them are probably worth following back and getting to know.

How to unfollow on GitHub

On the web, open the person’s profile and click Unfollow. From the command line, you first need to give gh permission to manage follows, then call the API:

gh auth refresh -s user:follow
gh api -X DELETE user/following/SOME_USERNAME

Use this for tidying up a handful of accounts, not for scripted mass unfollowing. More on that below.

Should you use an unfollower app?

Plenty of sites and apps promise to show who unfollowed you on GitHub. Before you use one, check what it asks for:

  • Read-only tools need no login. Follower lists are public, so a tool that only shows them doesn’t need access to your account.
  • Be careful with the user:follow permission. It lets the app follow and unfollow people as you. Only grant it to something you trust, and revoke it afterwards under Settings → Applications.
  • Never grant repository access to a tool that only needs your follower list.
  • Avoid follow-for-follow and auto-follow tools. GitHub’s Acceptable Use Policies prohibit inauthentic activity and automated bulk actions, and accounts doing it can be flagged or suspended.

The script above does the same job with nothing to install beyond the GitHub CLI, and no third party ever sees your data.

Why people unfollow, and why it’s fine

Most unfollows aren’t about you. People clean up their feed, leave a field they used to work in, or followed you back once out of politeness. A few unfollows a month is normal for any active account. What matters is the direction over months, and that’s driven by whether new people keep finding your work.

If you want to know where your count stands, we compared it against all of GitHub in how many GitHub followers is good. And if you want the count to go up, our guide on how to get more GitHub followers covers what works.

Quick recap

  1. GitHub never notifies you about unfollows.
  2. Save a snapshot of your followers with gh api, then compare it later with comm.
  3. Check a missing name’s profile before assuming an unfollow.
  4. Be stingy with app permissions, and skip follow-for-follow tools.
  5. Spend the energy on getting found instead. A free GitArena profile page shows your commits and streak and links back to your GitHub, one more place for new followers to come from.

Give your GitHub one more way to be found

Join the leaderboard for a free public profile page with your commits and streak, linking straight back to your GitHub. No login needed.

Join the leaderboard

Keep reading