After some debugging, I realized that I recently activated "Public clone access" in the project. The remote URL is http:// URL.
Error 401 simply means “access is denied” - so even the account is stored on my system, git tries to click without the account information that causes this error.
source share