Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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
无法与Bitbucket共享git回购_Git_Bitbucket_Push - Fatal编程技术网

无法与Bitbucket共享git回购

无法与Bitbucket共享git回购,git,bitbucket,push,Git,Bitbucket,Push,我有一个现有的本地存储库UndegGit。现在我想把它推到Bitbucket 如果我把遥控器 git remote add bitbucket <https://URL> 如果我这样做了 >git pull bitbucket master From https://URL * branch master -> FETCH_HEAD fatal: refusing to merge unrelated histories 看起来像死胡同

我有一个现有的本地存储库UndegGit。现在我想把它推到Bitbucket

如果我把遥控器

git remote add bitbucket <https://URL>
如果我这样做了

>git pull bitbucket master
From https://URL
 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories
看起来像死胡同

还可以做些什么


我不想先克隆空存储库,然后用文件填充它来作弊。我想将现有回购推送到Bitbucket。

Ad
-f
git push
命令(仅一次),这很简单,谢谢
>git pull bitbucket master
From https://URL
 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories