多git项目中账户的管理

每个项目配置用户名:

git config user.name "your_name"
git config user.email "your_email"

如果不配置则使用默认的全局用户名

//配置
git config --global user.name "your_name"
git config --global user.email  "your_email"
//取消
git config --global --unset user.name
git config --global --unset user.email
posted @ 2017-08-02 10:06  demonrain  阅读(369)  评论(0编辑  收藏  举报