Git查看当前配置列表,当前未配置,获取到的配置列表为空
user@admin:~/workspace$ git config --list
Git配置用户名及邮箱地址
user@admin:~/workspace$ git config --global user.name "user.name"
user@admin:~/workspace$ git config --global user.email "user.name@email.com"
配置之后,再通过查看配置命令查看配置列表,
user@admin:~/workspace$ git config --list
user.name=user.name
user.email=user.name@email.com
配置完成后,使用Git在进行代码提交时,使用上述配置的用户名和邮箱地址进行记录