Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Avoid typing git credentials everytime. Use git credentials manager.

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.

1) 

Download the GCM Deb file from here - https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.877/gcm-linux_amd64.2.0.877.deb


2)

Install it using the below command:

sudo dpkg -i <path-to-package>

Configure it.

git-credential-manager configure


3)

Go to your .bashrc file and copy-paste this line at the bottom.

export GCM_CREDENTIAL_STORE=plaintext

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


Read More:

https://github.com/GitCredentialManager/git-credential-manager/blob/main/README.md

https://github.com/GitCredentialManager/git-credential-manager/blob/release/docs/install.md

https://github.com/GitCredentialManager/git-credential-manager/releases/tag/v2.0.877

0 comments on 'Avoid Typing Git Credentials Everytime. Use Git Credentials Manager.'
Login to comment


Related Articles:
Using git hooks to boost your productivity
Writing a proper git message is a good coding practice. A good commit message should clearly convey what has been changed and why it has been changed. Sometimes developers use an improper message in a hurry to commit and push the changes. Here is a working hook that enforces the developer to use a commit message of 30 characters. you may start including the branch name in the commit message using git hook....
DigitalOcean Referral Badge

© 2022-2023 Python Circle   Contact   Sponsor   Archive   Sitemap