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. No entanto, também exige que você insira suas credenciais do GitHub toda vez que você faz pull ou push em um repositório.
You can avoid being prompted for your password by configuring Git to cache your credentials for you. Password-based authentication for Git is deprecated, and we recommend using a personal access token (PAT) when prompted for a password instead, which is more secure. Treat your token just like a password. Para obter mais informações, consulte "Criando um token de acesso pessoal."
Once you've configured credential caching, Git automatically uses your cached personal access token in place of a password when you pull or push a repository using HTTPS.