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