Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.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
错误:无法将某些引用推送到'/home/tom/test/myu repo.git';_Git - Fatal编程技术网

错误:无法将某些引用推送到'/home/tom/test/myu repo.git';

错误:无法将某些引用推送到'/home/tom/test/myu repo.git';,git,Git,我在my_repo.git文件中本地拥有存储库。我使用以下方法克隆了它: git clone my\u repo.git my\u repo 我做了更改,提交并尝试使用: git推送原始主机 但我有以下错误: error: failed to push some refs to '/home/tom/test/my_repo.git' 你知道我不能推送到reposiory.git文件的地方出了什么问题吗?请提供帮助。您是否配置了远程git repo?@如果克隆了repo,将自动配置kio or

我在
my_repo.git
文件中本地拥有存储库。我使用以下方法克隆了它:

git clone my\u repo.git my\u repo

我做了更改,提交并尝试使用:

git推送原始主机

但我有以下错误:

error: failed to push some refs to '/home/tom/test/my_repo.git'

你知道我不能推送到reposiory.git文件的地方出了什么问题吗?请提供帮助。

您是否配置了远程git repo?@如果克隆了repo,将自动配置kio origin。您是如何创建第一个repo.git的?如果它不是一个空的存储库,您将无法推送到它(并且会得到那个错误)。它有初始代码,我添加了我的代码,但我不能推到它。这是否意味着不可能推送到它?在“推送失败”错误消息上方的几行,它应该准确地告诉您它推送失败的引用,以及为什么。。。发布整个输出可能更有用。