如何解决无法与Bitbucket共享git repo
我有一个本地本地存储库undeg Git。现在,我想将其推送到Bitbucket。
如果我只是设置远程
git remote add bitbucket <https://URL>
它说存储库不存在。
如果我首先从Bitbucket页面创建存储库,则
>git push --all bitbucket
To https://URL
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://URL'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
如果我愿意
>git pull bitbucket master
From https://URL
* branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
看起来像死胡同。
还有什么可以做的?
我不想先克隆空的存储库,然后再填充文件来作弊。我想将现有的存储库推送到Bitbucket。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。