Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Github上创建文件夹结构_Git_Reactjs_Github_Create React App - Fatal编程技术网

在Github上创建文件夹结构

在Github上创建文件夹结构,git,reactjs,github,create-react-app,Git,Reactjs,Github,Create React App,我正在使用create react app()启动我的react应用程序。以下是我所做的: 创建react app barrex(文档目录内) cd-barrex git add-u git提交-m“启动新项目” git-push-u原始主机 我在我的Github上有一个名为“barrex”的新回购协议,我假设当我把它推到我的Github上时,它只会显示我文件夹中的文件,如src,public,index.html,等等。然而,它不知何故也把我的文档文件夹放在那里了 只有当我点击这个文件夹时,

我正在使用
create react app
()启动我的react应用程序。以下是我所做的:

  • 创建react app barrex
    (文档目录内)
  • cd-barrex
  • git add-u
  • git提交-m“启动新项目”
  • git-push-u原始主机
  • 我在我的Github上有一个名为“barrex”的新回购协议,我假设当我把它推到我的Github上时,它只会显示我文件夹中的文件,如
    src
    public
    index.html
    ,等等。然而,它不知何故也把我的文档文件夹放在那里了

    只有当我点击这个文件夹时,我才能得到项目文件


    为什么会发生这种情况?

    请按照以下步骤操作:

  • 创建react应用程序barrex
  • 光碟棒
  • git初始化
  • git远程添加源(

    注意:如果使用ssh,请忽略“(https://)”

  • git添加

  • git提交-m“初始提交”
  • git-push-u源主机

  • 我希望这对您有用。

    您的文档文件夹中可能有一个.git文件夹。