Mac ask for git global config email every time

broken image
broken image

These are all the ways and tools by which you can securely authenticate git to clone a repository without an interactive password prompt.įrom what's asked here either SSH Keys, GIT_ASKPASS, or git credential store using the OS Keychain manager might be the best choice. See The Git Credentials & Private Packages Cheatsheet Then using that token the pull command would be git pull masterĪfter going over dozens of SO posts, blogs, etc, I tried out every method, and this is what I came up with. You can generate an OAuth token from your profile settings. One further suggestion I would make (if you can't use ssh) is to actually use an OAuth token instead of plaintext username/password as it is slightly more secure.

broken image

ps).Īs brought up in the comments, since this method is using HTTPS you must URL-encode any special characters that may appear in your password as well. However, unless other steps are taken, the plaintext username and password will be visible while the process is running from commands that show current processes (e.g. This will not store your username or password in.

broken image

The method that I use is to actually use a git pull instead of a clone.