📜  为多个帐户设置 git config - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:19.458000             🧑  作者: Mango

代码示例1
# to set user on a per repo basis run the following commands in the project/repo root directory
git config user.name "My Special Repo Account User Name"
git config user.email myspecialrepoaccount@email.com

# to set a global/default git user run the following commands anywhere
git config --global user.name "My Default Account User Name"
git config --global user.email mydefault@email.com