I know that the GitHub web interface lets you search all repositories for files with a particular pathname (e.g. searching for path:/app/models/user.rb yields >
path:/app/models/user.rb
You can try Google. Google for filename.txt site:github.com.
filename.txt site:github.com