記事のバージョン: GitHub.com
Git が常にパスワードを要求するのはなぜですか?
GitHub とやり取りしようとするたびに Git がユーザ名とパスワードの入力を求めてくる場合は、おそらくリポジトリに HTTPS クローン URL を使用しています。
Using an HTTPS remote URL has some advantages compared with using SSH. It's easier to set up than SSH, and usually works through strict firewalls and proxies. ただし、リポジトリをプルまたはプッシュするたびに GitHub の認証情報を入力するように求められます。
You can avoid being prompted for your password by configuring Git to store it for you. Once you've configured it, Git automatically uses your cached password when you pull or push a repository.