Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/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
我能';t在github上上传本地世博项目_Git_React Native - Fatal编程技术网

我能';t在github上上传本地世博项目

我能';t在github上上传本地世博项目,git,react-native,Git,React Native,我不知道它是什么,我在git repository文件夹中创建了项目,我尝试上传这个项目,但它不会,它说它没有文件。 git中此文件夹的名称显示为首字母重复 我已经开发了一个小项目,并试图发送它,但我不能,我创建了其他项目,只是创建了文件,它不会。 上海世博会项目 尝试使用终端,看看是否会出现同样的问题: /* go to ReactNative-projects parent directory and open cmd from there. and push the change

我不知道它是什么,我在git repository文件夹中创建了项目,我尝试上传这个项目,但它不会,它说它没有文件。 git中此文件夹的名称显示为首字母重复 我已经开发了一个小项目,并试图发送它,但我不能,我创建了其他项目,只是创建了文件,它不会。 上海世博会项目


尝试使用终端,看看是否会出现同样的问题:

/* go to ReactNative-projects parent directory and open cmd from there. 
   and push the changes to your GitHub from then terminal like below: 
*/

>git add .

>git commit -m "initial commit"

>git push origin main

如果回购协议被正确初始化,那么它应该完成这项工作。我也遇到了同样的问题。 世博会在我自己的Github回购协议中创建了一个额外的Github回购协议。 不确定这是否是最好的方法,但我删除了我的Expo应用程序中的“.git”文件夹。通常,此文件夹不可见,因此您必须在资源管理器(Win10)中激活“显示隐藏元素”


请先复制您的回购协议并推送其他更改,因为您可以通过此操作销毁存储库。

您是否尝试过从终端提交更改?是否更改任何文件?如果是,是的