github - Git push nécessite nom d'utilisateur et mot de passe

Mots clés : gitgithubgit-pushgit-clonegit-pullgit

meilleur 5 Réponses github - Git push nécessite nom d'utilisateur et mot de passe

vote vote

100

git remote set-url origin git@github.com:username/repo.git 
git remote -v 
vote vote

81

$ git config credential.helper store $ git push https://github.com/owner/repo.git  Username for 'https://github.com': <USERNAME> Password for 'https://USERNAME@github.com': <PASSWORD> 
git config --global credential.helper 'cache --timeout 7200' 
vote vote

70

ssh://git@github.com/username/repo.git 
https://github.com/username/repo.git 
vote vote

66

machine github.com        login <user>        password <password> 
vote vote

50

git remote -v 
origin    https://yourname@github.com/yourname/yourrepo.git (fetch) origin    https://yourname@github.com/yourname/yourrepo.git (push) 
git remote set-url origin git@github.com:yourname/yourrepo.git 

Questions similaires