Closed php4fan closed 2 years ago
I tried another repository and it worked out of the box, so I looked at how their configurations differed, and in the end I got it to work by changing the repository's .git/config
from this:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch "master"]
remote = git@github.com:xxxxxxx/yyyyyyy.git
merge = refs/heads/master
to this:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:xxxxxxx/yyyyyyy.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
Note that git commands from the command line worked with both versions
I have a local clone of a github repository that I own.
When I cd into its directory and run
git pull
, it pulls. That means that my credentials, and/or whatever is needed for git to be able to pull from that repository, is correctly configured somewhere, whether it's in the repository folder or globally somewhere in my home folder.However, when I do the following:
I get this error: