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
不能';无法直接从Atom IDE初始化和推送Github存储库_Github_Ide_Atom Editor - Fatal编程技术网

不能';无法直接从Atom IDE初始化和推送Github存储库

不能';无法直接从Atom IDE初始化和推送Github存储库,github,ide,atom-editor,Github,Ide,Atom Editor,我是Atom编辑器的新手。目前正在进行一个PHP项目,该项目需要推进到Github repo中。我已经在Atom IDE终端本身中使用git init命令初始化了项目文件夹。当我尝试将更改推入git时。我按照终端中给出的命令抛出各种错误消息,但也不起作用 当我试图执行git push时,我得到下面的错误消息 致命错误:“”似乎不是git存储库 然后我再次执行了gitinit和gitcommit-m“message”,但它再次要求我使用下面的命令将更改上传到上游 git push --set-up

我是Atom编辑器的新手。目前正在进行一个PHP项目,该项目需要推进到Github repo中。我已经在Atom IDE终端本身中使用git init命令初始化了项目文件夹。当我尝试将更改推入git时。我按照终端中给出的命令抛出各种错误消息,但也不起作用

当我试图执行git push时,我得到下面的错误消息

致命错误:“”似乎不是git存储库

然后我再次执行了
gitinit
gitcommit-m“message”
,但它再次要求我使用下面的命令将更改上传到上游

git push --set-upstream master master
继续得到这两个错误


如果IDE以某种方式失败,请后退一步并转到命令行(shell或CMD)

在项目的根文件夹中,检查是否存在
.git/
子文件夹

键入git remote-v

如果您没有看到带有远程回购URL的条目“
origin
”,请键入:

git remote add origin /url/remote/repo
你应该看到:

C:\Users\vonc\git\go-prompt>git remote -v
origin  https://github.com/VonC/go-prompt (fetch)
origin  https://github.com/VonC/go-prompt (push)
然后,假设已添加/提交文件,请重试

git push -u origin master
# not master master, but origin master

什么是
各种错误消息
?在您的
项目名称中更新了@CaddyDZRun
git init
错误消息
,我尝试了您建议的方法,但遇到了以下问题。你能帮我一下吗?请查找问题中所附的图片section@GopiP我在你的图片中看到“链接”:你应该看到“来源”。你能检查一下我编辑过的答案吗?我已经包括了一个例子。@GopiP-DXC?我和你们一起工作!(作为DXC服务的客户)很高兴听到您@VonC的消息。我在DXC,但几个月前我离开了。我希望你已经看到所附的图片,你能帮我纠正错误吗issue@GopiP是的,我看过这张图片:我之前的评论是关于这张图片的。