Different Git User credential Con on same machine - 在同一個電腦上使用不同的Git 使用者

解決方去 我們可以在 local 的 Git Repos 上設定這個 Repos 的Git Credential 我們只需要在 Git Bash上輸入以下指令便可以了

git config user.name "YOUR_USERNAME"

git config user.email "YOUR_EMAIL"

如果大家不想每次都要輸入password 的話可以輸入以下Git command 去 cache 你的 git password

git config credential.helper cache

Hope you find it useful

Chi Yau
Chi Yau
Software Engineer

Interested on Learning new stuff and experience sharing