Git for Windows reports an error when performing git code

table of Contents

       Scene reproduction

       solve

       to sum up

 

Scene reproduction

There may be the following situations in which such problems occur:

1. The ip address or port is wrong

2. Insufficient permissions

3. The firewall did not allow this ip or port

4. The computer needs to be run as an administrator (I encountered it today) < could not lock config file C:/Users/.gitconfig: Permission denied >

solve

1) Search Git in the taskbar

2) Run as administrator 

 

 to sum up

           All the connection problems are either firewall problems, ip port problems, or permissions problems. All in all, the problems that can be solved by Baidu are not problems haha!

Guess you like

Origin blog.csdn.net/yeyslspi59/article/details/108929549