Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the git clone Times error: The requested URL returned error: 401 Unauthorized while accessing

2025-03-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to solve git clone error: The requested URL returned error: 401 Unauthorized while accessing". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Version problem, the most direct solution is to re-edit the installation git bar:

Set username and email

git config --global user.name "zhucaixiang"

git config --global user.email "xxxx@qq.com"

Creating an SSH key

ssh-keygen -t rsa -C "xxxx@qq.com"

1. Download: # wget -O git.zip https://github.com/git/git/archive/master.zip

2. Unzip: # unzip git.zip

3. Go to git directory: # cd git-master

4. Compile and install:

autoconf./ configure --prefix=/usr/localmake && make install

5. Finally, don't forget to delete the old git and soft link the new version of git to/usr/bin/git

rm /usr/bin/gitln -s /usr/local/bin/git /usr/bin/git

In linux files and software are generally installed in/usr/share and/usr/local, if we need to check the software installation path linux provides us with a view command, whereis can help me find the file installation path where.

Copy the code [root@localhost ~]# whereis eclipse

It will show:

The code is as follows Copy the code

eclipse: /usr/bin/eclipse /usr/lib/eclipse /usr/share/eclipse

"The requested URL returned error: 401 Unauthorized while accessing" is here. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report