Git

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

Github.com is a place to store and share GIT repositories.

Use multiple Github accounts

  • https://stackoverflow.com/questions/2041993/how-to-rename-a-git-repository/2042020
  • https://coderwall.com/p/9ub-6a/using-multiple-accounts-with-git-or-github
  • https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches

Gitflow

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
file:/Users/daniel/.gitconfig   user.name=Daniel
file:/Users/daniel/.gitconfig   user.email=mrwattz@gmail.com

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 github.com entry.

Reset the password in Keychain

Simply delete the github.com entry from the Keychain Access app.