需求
使用工作电脑配置了全局git用户名和公司email
更新github个人仓库时不希望commit暴露工作邮箱和姓名
实现
对repo配置local设置,指定提交时的用户名和邮箱
git config user.name nickname
git config user.email mail@github.com
改动将被保存在.git/config
中[user]
字段
使用工作电脑配置了全局git用户名和公司email
更新github个人仓库时不希望commit暴露工作邮箱和姓名
对repo配置local设置,指定提交时的用户名和邮箱
git config user.name nickname
git config user.email mail@github.com
改动将被保存在.git/config
中[user]
字段
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。