How to do advanced searches on GitHub?

1

Is it possible to build custom operators / queries when searching for GitHub?

GitHub provides the advanced search through an GUI , but also how there are searches #

This can certainly be useful to any developer, taking as example third-party codes according to your custom search.

    
asked by anonymous 02.01.2017 / 21:38

2 answers

2

All inline searches you can do:

  • user
  • repo
  • created
  • language
  • stars
  • forks
  • size
  • pushed
  • fork
  • extension
  • size
  • path
  • state
  • comments
  • label
  • author
  • mentions
  • assignee
  • updated
  • fullname
  • location
  • followers
  • repos
  • updated
  • fork
02.01.2017 / 22:29
2

After some research I found how this can be done.

You can search for specific files, dates, directories, among many other forms of searching. Here are some examples:

filepath:app/models filename:user.rb

filepath will search the exact path on all publicly hosted projects on GitHub. And filename by filename.

Find more information about advanced searches search-syntax and searching-code .

    
02.01.2017 / 22:11