Setting your username in Gitโ
Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username.
Caching your GitHub credentials in Gitโ
If you're cloning GitHub repositories using HTTPS, you can use a credential helper to tell Git to remember your credentials.
Why is Git always asking for my password?โ
If Git prompts you for a username and password every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository.
Updating credentials from the macOS Keychainโ
You'll need to update your saved credentials in the git-credential-osxkeychain helper if you change your username, password, or personal access token on GitHub.