git-config 配置多用户环境以及 includeIf用法

  • 方法一: 直接在 $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/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球