简体   繁体   中英

Unlock src folder in react deploy github pages

I'm trying to deploy my react website to Github pages, and I've followed all instructions in this tutorial. The deployment is done well, and the web is already up, but I got a problem here, the src folder seems locked here, and I want to make it accessible for anyone who wants to look at it

在此处输入图像描述

is there any way to "unlock" this src folder in my react project? Thanks in advance.

This is a remnant of a submodule which is no longer configured. The output of git ls-files --stage shows the mode of the src entry as 160000 which refers to a submodule:

[...]
160000 df78a5d08d49f10082d4d5c402bbb1dcf714c20f 0   src
100644 19762936f6c1b0e5274fdebc6ed78fe4b37038e6 0   tailwind.config.js
100644 25ed6eee8f2435e1ae8eeee447d0b33d73c72f41 0   yarn.lock

Since there is no .gitmodules anymore, you can remove the entry if no longer needed:

git rm --cached src
git commit -m "Remove src submodule"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM