0
0
Gitdevops~5 mins

Credential storage options in Git - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of credential storage in Git?
Credential storage in Git saves your username and password so you don't have to enter them every time you interact with a remote repository.
Click to reveal answer
beginner
Name one way Git can store credentials securely on your computer.
Git can use a credential helper like 'git-credential-cache' or 'git-credential-store' to save credentials temporarily or permanently.
Click to reveal answer
intermediate
What does the 'git-credential-cache' helper do?
It stores your credentials in memory for a short time (default 15 minutes), so you don't have to re-enter them during that period.
Click to reveal answer
intermediate
How does 'git-credential-store' differ from 'git-credential-cache'?
'git-credential-store' saves your credentials permanently in a plain text file on disk, while 'git-credential-cache' keeps them temporarily in memory.
Click to reveal answer
intermediate
What is a secure way to store Git credentials on Windows?
Using the 'Git Credential Manager' which integrates with Windows Credential Manager to store credentials securely.
Click to reveal answer
Which Git command sets the credential helper to cache credentials temporarily?
Agit config --global credential.helper cache
Bgit config --global credential.helper store
Cgit config --global credential.helper manager
Dgit config --global credential.helper none
Where does 'git-credential-store' save your credentials?
AIn a plain text file on disk
BIn memory for 15 minutes
CIn an encrypted system keychain
DIt does not save credentials
What is the risk of using 'git-credential-store'?
ACredentials are lost after reboot
BCredentials are stored in plain text and can be read by others
CIt requires internet connection
DIt only works on Linux
Which credential helper is recommended for secure storage on Windows?
Agit-credential-cache
Bgit-credential-store
Cgit-credential-none
DGit Credential Manager
How can you disable credential caching in Git?
Agit config --global credential.helper cache
Bgit config --global credential.helper store
Cgit config --global credential.helper ''
Dgit config --global credential.helper manager
Explain the differences between 'git-credential-cache' and 'git-credential-store'.
Think about how long credentials are saved and where.
You got /4 concepts.
    Describe how you would securely store Git credentials on a Windows machine.
    Consider Windows built-in secure storage.
    You got /4 concepts.