git distal account issues

1. gitlab password modify password can not be saved because git download, 403

In .git / config add the following

[credential]
     helper = store

After adding this configuration, github account information will be recorded in ~/.git-credentialthis file, account information will later need to read from the file

Solution: Clear ~/.git-credentialprevious file account information

 

2. resolve git pull / push to enter a password every time the issue

When you download the code is connected git clone http form

git bash into your project directory, enter:
git config --global credential.helper Store

Guess you like

Origin www.cnblogs.com/LC161616/p/11012122.html