Does all the files in public folder are shared in static web pages


I have followed below link to create static webpages

I have my git repo as private. I have hosted a static webpage from same git repo.
say i have below 4 files in public folder where my webpage can take the resources for launching the website.

  1. index.html
  2. main.css
  3. 1.js
  4. 2.js

But ,i am using only index.html and main.css for hosting my webpage.

Still 1.js and 2.js are publicy accessible or still it will restricted as files are in private git repo?

Regards, ag14341.