-
Assuming you did not commit the file, or add it to the index, then:
git checkout -- filename
Assuming you added it to the index, but did not commit it, then:
git reset HEAD filename
git checkout -- fi...
-
Configuração do Git para Armazenar Credenciais
Para evitar que o Git peça suas credenciais toda vez que você interage com um repositório remoto, você pode usar o "credential helper" do Git. Isso arma...
-
✅ 1. Configurar o token no Git globalmente (para https://)
Se você está usando https://gitlab.com/... como URL remota, você pode:
✅ a) Usar o Git Creden...