Is there a way to execute the Git grep command for code search on GitHub server?


I know that there are GitHub code search REST APIs available however for my requirement those are not fitting in.

I would like to search code in non default branches and tags as well which is not supported by GitHub REST API.

The Git grep command fits well for my requirement ,
git grep -n3 https 1.0 *.js
git grep -n3 https master-1 *.java

I am not able to figure out how to fire this git command directly on the server.
Obviously I could fire this in my Git CMD client.
Is there a way I could directly fire this command on GitHub server .

Thanks in Advance.

Hi @rahulsb! :wave: Welcome to the Community!

I’m afraid this is not possible, sorry! You’d need to clone a local copy to be able to grep all branches.