Solve the problem of slow opening github webpage and password input every time you upload github

Solve the problem of slow opening github webpage

Not much to say, just go to the operation, open the computer hosts file, put the IP of github, and save it. Everyone's computer path is slightly different, but the difference is not big. You can find it carefully.

C:\Windows\System32\drivers\etc

Insert picture description here
After finding the hosts file, use Notepad to open it. If your friend doesn't work well with Notepad, you can open it with some code-opening programs, such as notepad++,
Insert picture description here
then copy this text to the end of the document, save and exit.

# GitHub Start 
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
# GitHub End

Insert picture description here

Solve the problem of entering a password every time you upload github

1. First open the folder directory you want to upload every time
Insert picture description here
2. In the blank space, right-click git bash here, so that you can locate the folder where you are
Insert picture description here

3. Enter the following command and press Enter

git config --global credential.helper store

After such an operation, push the code again as usual, only need to input this time, no more input later, once and for all, comfortable.

If you jump out of the prompt window, just type in letters and press Enter to skip directly.
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42907822/article/details/115004544