做一个全局的用户配置,便于以后提交代码等,记录当前操作的用户。

    ## 添加配置

    # git config [--local | --global | --system] user.name 'Your name'

    # git config [--local | --global | --system] user.email 'Your email'

  

    ## 查看配置

    # git config --list [--local | --global | --system]

    

    ## 区别

    local:区域为本仓库

    global: 当前用户的所有仓库

    system: 本系统的所有用户

    

    Git.之.最小化配置

 

相关文章:

  • 2021-08-28
  • 2021-12-01
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-01-07
  • 2021-11-18
  • 2021-08-20
相关资源
相似解决方案