i also encountered same problem . i tried diff ways and methods but still the css was not working in Github Pages
[SOLUTION] : first make your complete project locally on your PC and after finishing it. create a repository and click on the option uploading an existing file :
and then just drag and drop your whole project. if u want to edit something, then directly edit the code on github website. don’t use command line for github pages.