Skip to main content

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. However, it also prompts you to enter your GitHub Enterprise Server credentials every time you pull or push a repository.

When Git prompts you for your password, enter your personal access token. Alternatively, you can use a credential helper like Git Credential Manager. Password-based authentication for Git has been removed in favor of more secure authentication methods. For more information, see "Managing your personal access tokens."

You can avoid being prompted for your password by configuring Git to cache your credentials for you. Once you've configured credential caching, Git automatically uses your cached personal access token when you pull or push a repository using HTTPS.

Further reading