What is the best way to use Magit with GitHub personal access tokens?
Right now, pushing to GitHub causes Magit to prompt me for a username and password. I have to provide the access token instead of my regular password to authenticate.
Apparently, cloning with SSH instead of HTTPS is the way to go. However, I've already cloned a large number of repos w/ HTTPS. Can I get them to use the token I've specified in my .gitconfig
file?
.git
directory is aconfig
file which specifies the upstream. You can edit this to change from https to ssh.