映射的git文件失去连接 [英] Mapped git files losts their connection

查看:184
本文介绍了映射的git文件失去连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从远程Git仓库获得了一个项目。但是新年过后,我只有本地副本,没有Git连接。
我的操作是:
1. git remote add origin
2. git remote -v显示我想要的
3. git checkout
4. git fetch AND它向我显示了

I got a project from remote Git repo. But after New Year I has only there local copies and no Git connection. My actions were: 1. git remote add origin 2. git remote -v shows me what I want 3. git checkout 4. git fetch AND THIS it shows me


您无权访问Bitbucket。请与您的
管理员联系以解决此问题。

You do not have permission to access Bitbucket. Please contact your administrator to resolve this issue.

但是我可以使用浏览器进行导航。有什么问题-请告诉我。

But I can can navigate it with my browser. Whats the problem - tell me plz.

是。不是git fetch会显示所有远程分支。发生这种情况-我在分支 origin / aaaa
中,想要从服务器进行更新(作为基准)-soo

Yesss. not git fetch shows me all remote branches. THen the situation - i'm in branch origin/aaaa and want to update it from server (as rebase) - soo


$ git pull
当前分支没有跟踪信息。
请指定要合并的分支。
有关详细信息,请参见git-pull(1)。
git pull
如果您想为此分支设置跟踪信息,可以使用以下方法:
git branch --set-upstream-to = origin / aaaa

$ git pull There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/ aaaa

我可以做

git branch --set-upstream-to=origin/aaaa aaaa

也许它开始工作了-以及与其他分支机构的合作-ew将我所有的本地分支链接到远程仓库-只能一个一个地连接?

Maybe it starts to work - and what with other branches - hoew to link all my local branches to remote repo - only one by one?

推荐答案


  1. 第一个问题IntellJ IDEA 2016.3.x无法执行[VCS-Git-Remotes ...]。您需要使用 git remote add ...

  2. 在控制台中执行此操作。第二个问题是Windows不使用我从[控制面板-用户]中保存的凭据-凭据-编辑]。所以我只删除它们并重新创建-这样提取就开始起作用。

  3. 第三个是创建新分支,但是没人给我打电话:(

这篇关于映射的git文件失去连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆