Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 2

Search commits but remove results from forks?

Solved! Go to Solution.

I'm using https://help.github.com/articles/searching-commits/ to try get generate a nice overview of all my open-source contributions.

 

But because of _forking_, many of the commits are duplicated on multiple repos. So they show up in the results multiple times. Example:

 

https://github.com/search?o=desc&p=3&q=author-email%3Aharaldnordgren%40gmail.com+is%3Apublic+-user%3...

 

Is it possible to filter commits by applying a uniqueness constraint on the commit hash. Or an option to remove forked repos?

1 Reply
Solution
Pilot Lvl 2
Message 2 of 2

Re: Search commits but remove results from forks?

Hey there @HaraldNordgren, help's arrived.

 

Yikes, that doesn't sound right. GitHub is meant to ignore forks from search results by default, so it might be worth contacting the folks at GitHub know this is happening. You can get in touch with them here: https://github.com/contact.

 

In the meantime, you can always use the fork:false flag to exclude forked results in search :) There's also some more info on searching here: https://help.github.com/articles/searching-code/

 

Let me know if this works for you!