Git配置用戶名、郵箱、密碼

配置用戶名:username

git config --global user.name username

配置郵箱:user@email

git config --global user.email user@email

配置密碼

git config --global credential.helper store

該命令會記住密碼,執行一次 git pull 或 git push 等需要輸入密碼的命令,輸入一次密碼。

查看配置

git config --list
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章