简体   繁体   English

React 代码在 gitHub 存储库中不可见

[英]React code is not visible properly in gitHub repository

I uploaded a react app on github repo and after pushing the code, I am seeing a new static folder instead of public and src folders, and the code is non readable in the repo.我在 github 存储库上上传了一个 React 应用程序,在推送代码后,我看到一个新的 static 文件夹而不是 public 和 src 文件夹,并且代码在存储库中不可读。 https://github.com/Rohitkumar123github/random-suggestion-using-api It will be easier if someone visit and see it. https://github.com/Rohitkumar123github/random-suggestion-using-api如果有人访问看看就容易多了。

I am new to github and i saw some videos on github hosting websites and when i tried to host my website i am seeing this static folder in my main branch instead of public and src.我是 github 的新手,我在 github 托管网站上看到了一些视频,当我尝试托管我的网站时,我在我的主分支中看到了这个 static 文件夹,而不是 public 和 src。 I want to use github to show my project source code and a running website to potential hires.我想使用 github 向潜在雇员展示我的项目源代码和正在运行的网站。 But the source code is non readable right now.但是源代码现在不可读。

did you add the src, public, and other folders that you said in the.gitignore file?你在.gitignore文件中添加了你说的src、public等文件夹吗? check this file, those folders mustn't be in the.gitignore file;检查这个文件,那些文件夹不能在 .gitignore 文件中; and check out that did you add those folders to the git stage before committing?并检查您是否在提交之前将这些文件夹添加到 git 阶段? (git add -A) (git 添加-A)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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