JetBrains IDE shortcuts« an older post
a newer one »What gems are installed?

Search GH for strings within specific file names

Snippet

Github has a LOT of code repositories. Sometimes, you want to search for how someone does a task in a specific, well-known file name for a project. For example, all Rails apps have a Gemfile, maybe you want to find a version of a gem used in a Gemfile.

Combine Github search filters to find exactly what you need.

# search for the word "command" in all files named "app.yml"
command in:file filename:app.yml

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.