Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Github is a place to store and share GIT repositories.

Use multiple Github accounts



Credential management on MacOS

If you are prompted to enter your username and password before each commit, then you are not using stored credentials.

Git itself cannot store passwords, but it can use external apps like Keychain to store passwords for it.

List the current configs

git config --list

List the location of the config files

git config --list --show-origin

// Output will be something like this:
file:/Library/Developer/CommandLineTools/usr/share/git-core/gitconfig   credential.helper=osxkeychain

You can see that the credential helper (OSX Keychain) is defined in /Library/Developer/CommandLineTools/usr/share/git-core/gitconfig and the account name and email are defined in /Users/daniel/.gitconfig.

Mac Keychain

If the GIT credential helper is set to use Mac Keychain (credential.helper=osxkeychain), then Keychain holds the actual credentials.

Open the Keychain Access app. Go-to the “Login” tab. You should be able to find a entry.

Reset the password in Keychain

Simply delete the entry from the Keychain Access app.