EN
Git save password under windows
7
points
1. Save git password with Windows Credential Manager
$ git config --global credential.helper manager
Steps:
- Run Git Bash
- Execute:
$ git config --global credential.helper manager
- Execute:
$ git pull
or any other git command that requires authentication - Windows credential manager will ask us for username and password
- Type username and password and click Ok
- All future git authentications for this git account will go from Windows credential manager
Great feature:
Our password is saved with Windows Credential Manager not as plain text.
Available from Git for Windows 2.7.3+ - github release
2. Save git password with git config credential
$ git config credential.helper store
Steps:
- Run Git Bash
- Execute:
$ git config credential.helper store
- Execute:
$ git pull
or any other git command that requires authentication - We will be asked to provide username and password to our git account
- Type username and password and click Ok
- All future git authentications for this git account will go from '.git-credentials' file
The password is stored as plain text in this file:
C:\Users\my_user_name\.git-credentials
Merged questions
- How do I save git credential under windows?
- Git - save username and password with windows
- How to safely store git credential under windows?
- Windows and git - save username and password.