Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What is the process of saving username and password in Git?

Asked by Dhruv Tiwari Sep 19, 2023 1.1K views 2 answers
Share

About this question

 I have been trying to use Git for a few days. But I cannot understand the process of saving username and password on the platform. Can I get any help regarding that? 

Your answer

2 Answers

Hashir Shabbir Latest answer

Answered on Dec 11, 2023


In Git, you can save your username and password by using the credential caching or credential store mechanism. To enable credential caching, you can use the "git config" command to set the "credential.helper" configuration to "cache" with a specified timeout, like "git config --global credential.helper 'cache --timeout=3600'". This will cache your credentials for the specified time, allowing you to avoid entering them repeatedly.

Alternatively, you can use the credential store by setting "git config --global credential.helper store". This method stores credentials in a plaintext file, which might be less secure, so use it with caution. After configuring either option, Git will prompt you for your credentials the first time, and subsequently, it will use the cached or stored credentials automatically.

Was this helpful?

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.