Is it possible to search a remote repository for a file without having cloned it locally? Given for example the clone
URL for this project, could I search the master branch for a file with a particular name? A file that contains a certain string?
git-ls-remote
seems like it is kind of close to what I want, but combining it with git-ls-files
or git-grep
doesn't work (SO post showing how to use these for the same task on a local instance of a repository)
git ls-remote https://github.com/Vincit/objection.js.git ls-files '*/mixin.js'
just returns to the command prompt without printing any output at all, errors or otherwise.