I'm using my github account with ssh key on my CentOS 7 desktop. So, I don't need to input password for git commands such as git clone generally.

But, I need to clone a private git repository of another account. I know the github user ID and password, so I tried to git clone with https protocol.

git clone https://github.com/<another-account>/<a-private-repository>.git

(<another-account> and <a-private-repository> are just used to hide my private information.)

I expect the prompt such as Username for 'https://github.com': to input github user ID. But, in my desktop, it shows the below error message:

remote: Repository not found.
fatal: repository 'https://github.com/<another-account>/<a-private-repository>.git/' not found

When I clone the repository on another Linux host, it works well. I can clone it without any problem. But, on my CentOS 7 desktop, it fails.

I guess that my git client of CentOS 7 desktop may use a kind of git credential helper / manager.

But, my global git config has no credential section.

  name = Anselmo Park
  email = anselmo@<somewhere>.com
[filter "lfs"]
  process = git-lfs filter-process
  required = true
  clean = git-lfs clean -- %f
  smudge = git-lfs smudge -- %f
  autoDetach = false
  #editor = /usr/bin/vim
  editor = /home/anselmo/.local/bin/vim
  tool = meld
  rebase = true
  tool = meld

This is my global git config file. (~/.gitconfig)

Why does this issue happen? How Can I find my git credential manager?

For your information, I'm using CentOS 7 and KDE desktop.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.