- 方法一: 直接在
$path
文件中添加用户名
和邮箱
,如:
[user]
name = librarookie
email = librarookie@163.com
- 方法二: 用
git config -f|--file
指定$path
文件的用户名
和邮箱
git config -f $path user.name “Your Name”
git config -f $path user.email “you@example.com”
git config -f ~/.gitconfig_self user.name librarookie
git config -f ~/.gitconfig_self user.email librarookie@163.com
Original: https://www.cnblogs.com/librarookie/p/15697181.html
Author: Librarookie
Title: git-config 配置多用户环境以及 includeIf用法
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/524289/
转载文章受原作者版权保护。转载请注明原作者出处!