10

I know I can exclude one author by -author:someone, but it looks like excluding 2 authors doesn't work: -author:user1 -author:user2. The result will include the user2.

I read GitHub search syntax doc but could find a solution.

Is there a way to exclude 2 authors at the same time?

Ran
  • 101
  • 6

1 Answers1

1

I don't seem to be facing the same issue as you for some reason. I tried searching "rust" in:name, to show all repos matching the exact phrase "rust", which gave me the following results (you can view them on GitHub here):

screenshot of searching "rust" in:name on GitHub

I then searched "rust" in:name -user:rust-lang -user:TheAlgorithms -user:tensorflow (view them on GitHub here) to exclude the first 3 authors from the results, which worked a charm:

screenshot of searching "rust" in:name -user:rust-lang -user:TheAlgorithms -user:tensorflow on GitHub

  • 8
    Thank you. I tried this in the GitHub search (the search box on the upper left corner), and it's working. But it doesn't work in the search box on the Pull Requests or Issues page. Is there a way to make it work too? – Ran May 21 '21 at 02:38