itlover2013

https://www.cnblogs.com/peng-lan/p/13038253.html

 

# git config命令的–global参数,用了这个参数,表示你这台机器上所有的Git仓库都会使用这个配置,当然也可以对某个仓库指定不同的用户名和Email地址。

# 1.查看git配置信息
$ git config --list

# 2.查看git用户名、密码、邮箱的配置
$ git config user.name
$ git config user.password
$ git config user.email

# 3.设置git用户名、密码、邮箱的配置
$ git config user.name "freedom"
$ git config user.password "123456"
$ git config user.email "1548429568@qq.com"


# 4.设置git用户名、密码、邮箱的配置(全局配置)
$ git config --global user.name 用户命
$ git config --global user.name freedom
$ git config --global user.password 密码
$ git config --global user.password abc0506abc
$ git config --global user.password 邮箱
$ git config --global user.email "1548429568@qq.com"


# 5.修改git用户名、密码、邮箱的配置(跟设置语法一样,没有用户名就添加,有了用户名就修改)
$ git config user.name "freedom"
# 4.修改git用户名、密码、邮箱的配置(全局配置)
$ git config --global user.name "freedom"

分类:

技术点:

相关文章:

  • 2021-05-01
  • 2021-12-31
  • 2021-10-19
  • 2022-02-08
  • 2022-02-08
  • 2021-05-17
猜你喜欢
  • 2021-08-12
  • 2022-12-23
  • 2021-05-30
  • 2021-07-07
  • 2021-07-28
  • 2021-12-21
相关资源
相似解决方案