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.
lisp/calendar/cal-menu.el
Showing the top two matches Last indexed Jun 25, 2018
Emacs Lisp
169 ["Backward 1 Year" calendar-backward-year])
170 "Key map for \"Scroll\" menu in the calendar.")
171
172 (declare-function x-popup-menu "menu.c" (position menu))
173
174 (defmacro cal-menu-x-popup-menu (event title &rest body)
175 "Call `x-popup-menu' at position EVENT, with TITLE and contents BODY.
lisp/tmm.el
Showing the top two matches Last indexed Jun 25, 2018
Emacs Lisp
163 The last alternative is currently a hack, you cannot use mouse reliably.
164
165 MENU is like the MENU argument to `x-popup-menu': either a
166 keymap or an alist of alists.
193 (if (and not-menu (= 1 (length tmm-km-list)))
194 ;; If this is the top-level of an x-popup-menu menu,
195 ;; and there is just one pane, choose that one silently.
lisp/progmodes/cpp.el
Showing the top two matches Last indexed Jun 25, 2018
Emacs Lisp
708 (defun cpp-choose-branch ()
709 ;; Choose a branch, either nil, t, or both.
710 (if cpp-button-event
711 (x-popup-menu cpp-button-event
719 ;; DEFAULT is the default face.
720 (or (if cpp-button-event
721 (x-popup-menu cpp-button-event
722 (list prompt (cons prompt cpp-face-default-list)))
src/menu.c
Showing the top two matches Last indexed Aug 11, 2018
C
496 alist-of-alists MENU.
497 This handles old-fashioned calls to x-popup-menu. */
498 void
499 list_of_panes (Lisp_Object menu)
1399 if (error_name) error ("%s", error_name);
1400 return selection;
1401 }
1402
1403 DEFUN ("x-popup-menu", Fx_popup_menu, Sx_popup_menu, 2, 2, 0,
1404 doc: /* Pop up a deck-of-cards menu and return user's selection.
lisp/hi-lock.el
Showing the top two matches Last indexed Aug 15, 2018
Emacs Lisp
498 (cadr (cadr (cadr keyword)))) ; Keyword looks like (REGEXP (0 'FACE) ...).
499
500 (declare-function x-popup-menu "menu.c" (position menu))
556 use-dialog-box)
557 (catch 'snafu
558 (or
559 (x-popup-menu
560 t
561 (cons
562 `keymap
lisp/net/eudc-bob.el
Showing the top match Last indexed Aug 16, 2018
Emacs Lisp
255 (eudc-jump-to-event event)
256 (let ((result (x-popup-menu t (eudc-bob-menu)))
257 command)
258 (if result
259 (progn
260 (setq command (lookup-key (eudc-bob-menu)
lisp/emacs-lisp/easymenu.el
Showing the top two matches Last indexed Jun 25, 2018
Emacs Lisp
176 ;; FIXME: XEmacs uses popup-menu which calls the binding
177 ;; while x-popup-menu only returns the selection.
178 (x-popup-menu event
lisp/mouse.el
Showing the top two matches Last indexed Jun 25, 2018
Emacs Lisp
1983 and selects that window."
1984 (interactive "e")
1985 (mouse-minibuffer-check event)
1986 (let ((buf (x-popup-menu event (mouse-buffer-menu-map)))
2220 (declare-function generate-fontset-menu "fontset" ())
2221
2222 (defun mouse-select-font ()
2223 "Prompt for a font name, using `x-popup-menu', and return it."
doc/lispref/frames.texi
Showing the top two matches Last indexed Jul 28, 2018
3535 motion keys---@kbd{C-n}, @kbd{C-p}, or up- and down-arrow keys.
3536
3537 @defun x-popup-menu position menu
3538 This function displays a pop-up menu and returns an indication of
3566 submenu. (Note that @code{x-popup-menu} does not actually execute the
3567 command bound to that sequence of events.) On text terminals and
src/xmenu.c
Showing the top two matches Last indexed Aug 11, 2018
C
222 /* Loop in Xt until the menu pulldown or dialog popup has been
223 popped down (deactivated). This is used for x-popup-menu
224 and x-popup-dialog; it is not used for the menu bar.
2294 corner of the menu as a whole ends up at given coordinates. This
2295 is what x-popup-menu says in its documentation. */
2296 x += width/2;