《问》How do I ensure Git doesn't ask me for my GitHub username and password?
《问》
How do I ensure Git doesn't ask me for my GitHub username and password?Method ONE
git config --global color.ui true
git config --global user.email "YOUR@EMAIL.com"
git config --global user.name "USER.NAME"
git config -l
example
git config --global user.email "gudao.luo@gmail.com"
git config --global user.name "cnruby"
ssh-keygen -t rsa -b 4096 -C "gudao.luo@gmail.com"
cat ~/.ssh/id_rsa.pub
ssh -T git@github.com
Comments