Posts tagged with “clone

Associating a username with a repository

When working with a private repository, GitHub will force you to provide a username and password (or personal access token if two-step authentication has been configured) every time you want to do anything that affects the repository (e.g. clone, pull, push, fetch). If you associate a specific username with the repository (from a user authorized […]

How to avoid a 403 Forbidden error when cloning a private repository

Sometimes when I’m trying to clone a private repository to a remote host, I get a 403 Forbidden error, like so: git clone https://github.com/repos_username/repos_name.git Initialized empty Git repository in /home/public_html/.git/ error: The requested URL returned error: 403 Forbidden while accessing https://github.com/repos_username/repos_name.git/info/refs fatal: HTTP request failed No prompt for a username and password, just the door […]