Basic Search

Learn how to use GitHub.GG's powerful search capabilities to find code and content.

Using the Search Bar

GitHub.GG provides an enhanced search experience compared to standard GitHub. To start searching:

  1. Click on the search bar at the top of any GitHub.GG page
  2. Enter your search query
  3. Press Enter or click the search icon

Search Bar Location

Search bar screenshot placeholder

Search Syntax

GitHub.GG supports a variety of search operators to help you find exactly what you're looking for:

OperatorDescriptionExample
filename:Search for files with a specific name or extensionfilename:*.js
path:Search within a specific directory pathpath:src/components
language:Search for code in a specific languagelanguage:typescript
repo:Search within a specific repositoryrepo:facebook/react
user:Search repositories owned by a specific useruser:facebook

You can combine these operators to create more specific searches:

useState language:typescript path:src/hooks

This would search for "useState" in TypeScript files within the src/hooks directory.

Search Results

Search results in GitHub.GG are organized to help you quickly find what you're looking for:

  • Code Results: Matching code snippets with syntax highlighting
  • File Results: Files that match your search criteria
  • Repository Results: Repositories that match your search
  • Issue Results: Issues that contain your search terms
  • Pull Request Results: Pull requests that match your search

Results are ranked by relevance, with the most relevant matches appearing first.

Search Filters

After performing a search, you can further refine your results using filters:

  • Language: Filter by programming language
  • File Type: Filter by file extension
  • Repository: Filter by repository
  • User: Filter by user
  • Date Range: Filter by when the code was committed

These filters appear in the sidebar of the search results page.

Next Steps

Now that you understand the basics of searching in GitHub.GG, you might want to explore: