Mapped git files losts their connection

…衆ロ難τιáo~ 提交于 2019-12-08 05:38:09

问题


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

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.

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 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

Ok I can do

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

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:


  1. The first problem that IntellJ IDEA 2016.3.x can't execute [VCS - Git - Remotes...]. You need do it in console with git remote add...
  2. The second problem was that Windows doesn't use my saved credentials from [Control Panel - Users - Credentials - Edit]. So I just remove'em and recreate - so fetch starts to work.
  3. The third was, that was create new branch, but noone tols me about it :(



回答2:


Check the value of git config credential helper (for instance, on Windows, you could see "manager"

If that is the case, see "How to sign out in Git Bash console in Windows?":

git credential-manager delete <url>

Here

git credential-manager delete https://github.com

Or you can access the interface of the manager.

You don't have to remove the credential helper which is practical for caching user's password.



来源:https://stackoverflow.com/questions/41711897/mapped-git-files-losts-their-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!