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 = Wang 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]
4, after the Pull/push code is no longer required to enter the account password ~
Linux server git pull/push avoid entering account password frequently