Git免密訪問
ssh方式
首先創(chuàng)建個人的ssh-key
ssh-keygen -t rsa
將~/.ssh/id_rsa.pub的內(nèi)容配置到github或者gitee中即可
https方式
設(shè)置自動記住密碼:
git config --global credential.helper store
若只在一個工程中記錄密碼倦炒,可以在工程目錄下輸入:
git config credential.helper store
然后執(zhí)行g(shù)it命令朦前,輸入一次賬號密碼即可