'What path do I need to write to get css to work in GitHub pages?

I have tried multiple file paths in my HTML head to get the CSS to load in GitHub pages but it won't. It loads locally but not on pages.

I tried

<link rel="stylesheet" type="text/css" href="css/components/style.css">
<link rel="stylesheet" type="text/css" href="/css/components/style.css">

<link rel="stylesheet" href="css/components/style.css">

<link rel="stylesheet" href="/css/components/style.css">

None work, any help would be amazing

my repo page

I tried changing the file name multiple times expecting the gh pages css to load it did not



Solution 1:[1]

The answer to this question is already here. Check out this stack overflow answer, which worked for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gopikrishnan