Bird
0
0

You set git config --global credential.helper cache but Git still prompts for credentials every time. What is a likely cause?

medium📝 Troubleshoot Q6 of 15
Git - Configuration and Aliases
You set git config --global credential.helper cache but Git still prompts for credentials every time. What is a likely cause?
AGit does not support the cache helper on your OS
BThe 'store' helper is overriding the cache
CThe cache timeout is too short or unset
DYou must restart Git after setting the helper
Step-by-Step Solution
Solution:
  1. Step 1: Understand cache timeout behavior

    By default, cache timeout is 15 minutes; if unset or too short, credentials expire quickly.
  2. Step 2: Reason why prompts continue

    If timeout is too short, Git prompts again because credentials are forgotten.
  3. Final Answer:

    The cache timeout is too short or unset -> Option C
  4. Quick Check:

    Cache timeout controls prompt frequency [OK]
Quick Trick: Set cache timeout to avoid repeated prompts [OK]
Common Mistakes:
  • Assuming 'store' overrides cache
  • Thinking Git needs restart
  • Believing cache unsupported on OS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes