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?
- 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...
- 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.
- The third was, that was create new branch, but noone tols me about it :(
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