配置git push不用每次輸入用戶名和密碼,修改git配置文件,保存git帳戶密碼

1.使用ssh協議git step 1: 生成公鑰 ssh-keygen -t rsa -C "xxxxx@xxxxx.com" # Generating public/private rsa key pair... # 三次回車便可生成 ssh key step 2: 查看已生成的公鑰 cat ~/.ssh/id_rsa.pub # ssh-rsa AAAAB3NzaC1yc2EAAAADA
相關文章
相關標籤/搜索