git跳過用戶名和密碼驗證


$ git config credential.helper store
$ git push https://github.com/repo.git(你的git倉庫地址)

Username for 'https://github.com': <USERNAME>
Password for 'https://USERNAME@github.com': <PASSWORD>

如果是在其他電腦上使用,還可以使用緩存期進行設置到期時間

git config --global credential.helper 'cache --timeout 7200'

單位是秒,7200秒(2個小時)后失效


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM