Search code examples
gitauthenticationgithubcredentialsgit-gui

Cloning a private github repo without credentials?


I'm new to git and github, so forgive me if this somehow sounds stupid.

After much needless frustration with trying to find a git gui client, I had a major facepalm when I realized that git came with a GUI. Thusly, I ended my search and proceeded to redownload a test repository I made on github.

HOWEVER, after putting in the private repo address and a target folder, I somehow downloaded the repo without a credential prompt of any kind for github. I did make a commit earlier when I was testing things on another client that was buggier than I liked.

Is this normal behavior or a serious bug? Why is github not checking for anything? Did git store my github account details? How do I stop this functionality?

I am terrified...help...


Solution

  • Git generally uses a public/private key mechanism for transfers, not a password login. Your GUI may have automatically configured this for you, but if your repo is private it will not be accessible without authentication.