Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.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
Flutter 如何修复:错误:无法将某些引用推送到|创建远程GitHub存储库?_Flutter_Github_Repository_Developer Tools - Fatal编程技术网

Flutter 如何修复:错误:无法将某些引用推送到|创建远程GitHub存储库?

Flutter 如何修复:错误:无法将某些引用推送到|创建远程GitHub存储库?,flutter,github,repository,developer-tools,Flutter,Github,Repository,Developer Tools,我无法将我的项目推送到GitHub存储库,它一直告诉我>>推送某些引用失败 如何修复它?只需在桌面上打开Git Bash,然后按照以下步骤操作……编写以下说明: 1==>cd.复制您的地址 2==>git init 3==>在您的github项目上运行类似这样的东西==>git remote add origin 4==>git远程 5==>在github项目上运行类似这样的东西==>git push-u origin main 6==>git添加-A 7==>git提交-m“初始提交” 8==

我无法将我的项目推送到GitHub存储库,它一直告诉我>>推送某些引用失败
如何修复它?

只需在桌面上打开Git Bash,然后按照以下步骤操作……编写以下说明:

1==>cd.复制您的地址

2==>git init

3==>在您的github项目上运行类似这样的东西==>git remote add origin

4==>git远程

5==>在github项目上运行类似这样的东西==>git push-u origin main

6==>git添加-A

7==>git提交-m“初始提交”

8==>再次运行==>git push-u origin main…但将其替换为..master,这样就可以了

8==>git推送-u源主机


然后使用您的用户名和github帐户登录,它将立即推送您的项目。

您可以共享用于推送的命令吗?iam使用的命令是Git Bash