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] = Dawn = [email protected][credential] = 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 Pull for ' https://git.oschina.net ' for'https://[email protected] @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 when prompted to enter the account password exemption settings