I’m trying to follow the directions here to release an update to my theme. Don’t have any idea how to find the root directory and anything I look up doesn’t make sense.
Things I have tried
I’ve researched how to find the root and attempted a couple of things but I really have no idea what I’m doing.
The root of your theme is simply the top folder. In the screenshot below it would be the folder, “Sample Theme”
And it is saying to add:
YourTheme/.github/workflows/release.yml
If you go to download the sample theme, you can see this folder and that particular file. Folders with . at the start are hidden by default, so you might have to show hidden folders in your OS.
I deleted it because it didn’t work. I added it back just now and and when I tried to put Step 2 into the terminal I got this again:
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
The command has to be entered in the directory of the repository. The error is complaining that your current directory isn’t a git repo, which should has a .git sub-directory.
Did you also accidentally delete the .git folder from Reshi?
the_tree is showing a parent folder as your git repository. But I guess “Reshi” should actually be your git repository, right?
When you executed the git add command, which directory were you in? You should change the current directory to be in “Reshi” where a .git folder should exist.
That would be a good idea. Practice on a test repository and get comfortable with basic git commands. And remember git is the tool, Github is just one particular website where you can sync git repos. “how to use Github” should find you plenty of tutorials, but you are also learning “how to use git”. That distinction might help you when you are googling. Especially for basic errors and commands.