fatal: unable to access 'https://git.liuzhen007.com/boffmpeg.git/': The requested URL returned error: 403

created at 10-21-2021 views: 3


Today, when creating a project on an arm architecture server, I encountered an error. The commands executed are as follows:

git clone https://git.liuzhen007.com/boffmpeg.git

The error message is as follows:

fatal: unable to access 'https://git.liuzhen007.com/boffmpeg.git/': The requested URL returned error: 403


method 1
Execute the following command to view git configuration information:

git config --list

It was found that the user name and mailbox configured by user.name and user.email were incorrect, and then executed the following command to modify:

git config --global user.name "username"
git config --global user.email "mailbox"

Check the git configuration information again and find that it has been corrected, as shown in the following figure:

Check the git configuration information

Execute the clone command again, the error still exists.

Method 2
Basically tried all the methods, but did not solve the above problem, and finally solved the problem with the following command:

git clone git@git.liuzhen007.com:boffmpeg.git

In fact, when we use github or gitlab to create a project, there are generally two ways, github more often only has one. We are just replacing a clone code method here. The above problem should still be related to the git configuration, but the time is tight, so I won't investigate it in depth. Those who know are welcome to comment and leave a message!

Please log in to leave a comment.