需求

使用工作电脑配置了全局git用户名和公司email
更新github个人仓库时不希望commit暴露工作邮箱和姓名

实现

对repo配置local设置,指定提交时的用户名和邮箱

git config user.name nickname
git config user.email mail@github.com

改动将被保存在.git/config[user]字段

See also

git使用指定ssh key - azureology - 博客园

相关文章:

  • 2021-12-09
  • 2021-12-06
  • 2022-12-23
  • 2021-12-01
  • 2022-02-08
  • 2021-10-01
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案