2017-05-29 2 views
0

Je couruLinux - Comment faire pour supprimer Git informations d'identification

magasin credential.helper config git

et couru

git pousser origine maître

où je entré mes informations d'identification et ils ont été enregistrés. Je lis qu'ils ont été stockés en texte brut, et maintenant je veux supprimer mes informations d'identification d'être enregistré et entré par défaut.

Comment est-ce que je peux faire ceci?

Répondre

2

Vos informations d'identification sont stored in the file you (or the thing using git credential-store) specified when you (or it) ran the command, as described in the documentation. La valeur par défaut est $HOME/.git-credentials. Vous devriez être capable d'ouvrir ce fichier dans votre éditeur et de le modifier, ou simplement le supprimer complètement.

Notez que vous pouvez également modifier l'assistant d'informations d'identification afin qu'il ne soit plus stocké. Voir aussi the git credential-cache documentation, par exemple.

3

Exécutez la commande suivante dans le terminal pour supprimer vos informations d'identification stockées dans le cache

git config --global --unset credential.helper