In github, how to upload your local front-end page and all the picture folders of the project, CSS files, JS files, to achieve the effect that you can give others a preview?

problem description

how to upload the front-end exercise page written by yourself and all the photo folders and CSS and JS files of the project to github so as to achieve the effect of preview?

the platform version of the problem and what methods you have tried

has tried to use https:// user name / github.io method, but you can only get files that preview html. Now I want to show the effect of the front-end practice page written by myself. I don"t know how to upload the local photo folder and JS file to github
. I have also searched Google for similar questions, but I haven"t found a satisfactory answer

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

the expected effect is
clipboard.png
but only html files can be displayed on github, other local photos and css files do not know how to upload to github to achieve this effect

Jun.12,2022

.gitgnore file is used to mark what files are not uploaded. Delete the default tagged image js folder path and re-upload it

look at the contents of your file. Do you have your picture folder, css folder, js folder? if so, delete the corresponding path and upload it again


if you upload html at the meeting, you can upload css and js, and throw the project directly on github. What you are practicing should also be a static page, which must be displayed. Let's do more tumbling

.
git add .
git commit -m ''
git push

the git ignore list file mentioned above is generally used to filter dependent libraries. You should not use it

.
Menu