GuilinDev

Solution For Git Always Ask Passphrase

07 May 2021

Replace HTTPS with SSH way to do the transfer in the socket
Check transport protocol
1
git remote -v

this should be like:

1
2
origin https://github.com/guilindev/testRepo.git (fetch)
origin https://github.com/guilindev/testRepo.git (push)
Reset to SSH
1
2
3
git remote rm origin
git remote add origin git@github.com:username/repository.git
git push # may need reset head by using  git push --set-upstream origin master
Check transfer protocol again
1
2
3
git remote -v
origin git@github.com:guilindev/testRepo.git (fetch)
origin git@github.com:guilindev/testRepo.git (push)
When git push again, it won’t ask passphrase

Comments

    No Comments yet.

    Comment for this article on this ticket. Comments appear on this page instantly.