Searching code in a specific github Branch

I am trying to search some code in a branch in a github repo.

However this indicates that I can only search the default branch.

  • Why should someone tag in Git?
  • How do I implement sparse checkout in JGit?
  • Where is vimrc or vim profile for github's mingw32 shell on a Windows machine?
  • git command is not recognized on Terminal tool window in IntelliJ IDEA
  • Git best practice commit logs
  • How to remove unused git branches
  • Is there anyway I can search code in non-default branch in my github repo?

  • How to update code from git to a Docker container
  • Compared with unmodified - Disabled in VS 2015
  • Legacy code started this job. No cause information is available
  • Getting only files in a branch diff
  • How do I force-quit Git Bash?
  • Replicating "git checkout <commit> with PyGit2
  • One Solution collect form web for “Searching code in a specific github Branch”

    Not from the GitHub web interface itself, as mentioned in “How to search for a commit message in github?”: only master is indexed.

    Your best bet is to clone the repo, and there, search in all branches. (with git log -S for instance)

    Git Baby is a git and github fan, let's start git clone.