Skip to content
Advanced search
Cheat sheet

Search cheat sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

This search Finds repositories with…
cat stars:>100 Find cat repositories with greater than 100 stars.
user:defunkt Get all repositories from the user defunkt.
tom location:"San Francisco, CA" Find all tom users in "San Francisco, CA".
join extension:coffee Find all instances of join in code with coffee extension.
NOT cat Excludes all results containing cat.

Repository search

Repository search looks through the projects you have access to on GitHub. You can also filter the results:

This search Finds repositories with…
cat stars:>100 Find cat repositories with greater than 100 stars.
user:defunkt Get all repositories from the user defunkt.
pugs pushed:>2013-01-28 Pugs repositories pushed to since Jan 28, 2013.
node.js forks:<200 Find all node.js repositories with less than 200 forks.
jquery size:1024..4089 Find jquery repositories between the sizes 1024 and 4089 kB.
gitx fork:true Repository search includes forks of gitx.
gitx fork:only Repository search returns only forks of gitx.

Code search

Code search looks through the files hosted on GitHub. You can also filter the results:

This search Finds repositories with…
install repo:charles/privaterepo Find all instances of install in code from the repository charles/privaterepo.
shogun user:heroku Find references to shogun from all public heroku repositories.
join extension:coffee Find all instances of join in code with coffee extension.
system size:>1000 Find all instances of system in code of file size greater than 1000kbs.
examples path:/docs/ Find all examples in the path /docs/.
replace fork:true Search replace in the source code of forks.

Issue search

Issue search looks through issues and pull requests on GitHub. You can also filter the results:

This search Finds issues…
encoding user:heroku Encoding issues across the Heroku organization.
cat is:open Find cat issues that are open.
strange comments:>42 Issues with more than 42 comments.
hard label:bug Hard issues labeled as a bug.
author:mojombo All issues authored by mojombo.
mentions:tpope All issues mentioning tpope.
assignee:rtomayko All issues assigned to rtomayko.
exception created:>2012-12-31 Created since the beginning of 2013.
exception updated:<2013-01-01 Last updated before 2013.

User search

User search finds users with an account on GitHub. You can also filter the results:

This search Finds repositories with…
fullname:"Linus Torvalds" Find users with the full name "Linus Torvalds".
tom location:"San Francisco, CA" Find all tom users in "San Francisco, CA".
chris followers:100..200 Find all chris users with followers between 100 and 200.
ryan repos:>10 Find all ryan users with more than 10 repositories.
src/trapfunc.cpp
Showing the top two matches Last indexed Jul 4, 2019
C++
80 if( c != nullptr && c->get_size() == MS_TINY ) {
81 return;
82 }
83 if( c != nullptr ) {
84 c->add_msg_player_or_npc( m_warning, _( "You step on some bubble wrap!" ),
99 // tiny animals and hallucinations don't trigger glass trap
100 if( c->get_size() == MS_TINY || c->is_hallucination() ) {
src/monmove.cpp
Showing the top two matches Last indexed Jul 15, 2019
C++
130 if( !( type->size == MS_TINY || can_climb ) &&
131 ( target == t_pit || target == t_pit_spiked || target == t_pit_glass ) ) {
137 if( g->m.has_flag( "SHARP", p ) &&
138 !( type->size == MS_TINY || has_flag( MF_FLIES ) ) ) {
src/creature.cpp
Showing the top two matches Last indexed Jul 13, 2019
C++
55 const std::map<std::string, m_size> Creature::size_map = {
56 {"TINY", MS_TINY}, {"SMALL", MS_SMALL}, {"MEDIUM", MS_MEDIUM},
57 {"LARGE", MS_LARGE}, {"HUGE", MS_HUGE}
217 switch( p->get_size() ) {
218 case MS_TINY:
219 size_modifier = 2.0;
src/mtype.h
Showing the top match Last indexed Jul 5, 2019
C++
72 MF_NOHEAD, // Headshots not allowed!
73 MF_HARDTOSHOOT, // It's one size smaller for ranged attacks, no less then MS_TINY
74 MF_GRABS, // Its attacks may grab us!
src/ballistics.cpp
Showing the top match Last indexed Jul 6, 2019
C++
93 embed = embed && ( critter_size > MS_TINY || vol < 250_ml );
94 embed = embed && ( critter_size > MS_SMALL || vol < 500_ml );
src/monster.cpp
Showing the top two matches Last indexed Jul 13, 2019
C++
161 static const std::map<m_size, std::string> size_names {
162 {m_size::MS_TINY, translate_marker( "tiny" )},
163 {m_size::MS_SMALL, translate_marker( "small" )},
1731 switch( type->size ) {
1732 case MS_TINY:
1733 size_bonus -= 7;
1734 break;
1735 case MS_SMALL:
src/explosion.cpp
Showing the top match Last indexed Jul 13, 2019
C++
660 const auto mon_item_id = critter.type->revert_to_itype;
661 switch( critter.get_size() ) {
662 case MS_TINY:
663 deact_chance = 6;
src/mondeath.cpp
Showing the top match Last indexed Jul 15, 2019
C++
582 switch( z.type->size ) {
583 case MS_TINY:
584 size = 4;
585 break;
586 case MS_SMALL:
src/ranged.cpp
Showing the top two matches Last indexed Jul 14, 2019
C++
86 static double occupied_tile_fraction( m_size target_size )
87 {
88 switch( target_size ) {
89 case MS_TINY:
106 if( has_flag( MF_HARDTOSHOOT ) ) {
107 switch( get_size() ) {
108 case MS_TINY:
109 case MS_SMALL:
src/monstergenerator.cpp
Showing the top match Last indexed Jul 7, 2019
C++
244 static m_size volume_to_size( const units::volume vol )
245 {
246 if( vol <= 7500_ml ) {
247 return MS_TINY;
You can’t perform that action at this time.