1. First CD to root directory, execute git config--global credential.helper store command
[[email protected] ~]# git config--global credential.helper store
2, after the implementation will be in the. gitconfig file more red font entries
[User] name = Dawn email = [email protected][credential] helper = Store
3, after the CD to the project directory, the implementation of the GIT pull command, you will be prompted to enter the account password. After this one is no longer needed and a. git-credentials file is generated in the root directory
[[email protected] test]# git pullusername for ' https://git.oschina.net ': [e-mail Protected]password for ' Https://[email p Rotected] @git. Oschina.net ':
[email protected] ~]# cat. Git-credentialshttps://username:[email protected]
Linux server git Pull/push when prompted to enter the account password exemption settings