Origianally published at PythonCircle.Com
Are you tired of typing the Git username and password 512 times a day?
Use Git Credential Manager (GCM). This supports all major version control tools, GitLab, GitHub, Bitbucket, etc.
Here are the steps to set up GCM.
Download the GCM Deb file from here - https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.877/gcm-linux_amd22.214.171.1247.deb
Install it using the below command:
sudo dpkg -i <path-to-package>
Go to your .bashrc file and copy-paste this line at the bottom.
Restart the terminal.
Now you have to type the credentials just once and they will be stored on your system.
Note: There are many other ways to store the credentials. Storing credentials in plain text format is unsafe but convenient. This does not require any more packages to work.
You may explore more ways to store the credentials here https://github.com/GitCredentialManager/git-credential-manager/blob/release/docs/install.md
Top comments (0)