博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git 用户名和邮箱设置
阅读量:7018 次
发布时间:2019-06-28

本文共 1188 字,大约阅读时间需要 3 分钟。

hot3.png

首先,可以通过git config --list或者git config -l查看git 设置

credential.helper=osxkeychainuser.name=[name]user.email=[email]core.autocrlf=inputcore.repositoryformatversion=0core.filemode=truecore.bare=falsecore.logallrefupdates=truecore.ignorecase=truecore.precomposeunicode=trueremote.origin.url=http://git..../mobile/H5-app.gitremote.origin.fetch=+refs/heads/*:refs/remotes/origin/*branch.master.remote=originbranch.master.merge=refs/heads/masterbranch.develop.remote=originbranch.develop.merge=refs/heads/developbranch.develop2.remote=originbranch.develop2.merge=refs/heads/develop2branch.23108.remote=originbranch.23108.merge=refs/heads/23108branch.22741.remote=originbranch.22741.merge=refs/heads/22741

    

  1. 用户名和邮箱地址的作用

    用户名和邮箱地址是本地客户端的一个变量,不随库而改变。

    每次commit都会用用户名和邮箱纪录。

    github的contributions统计就是按邮箱来统计的。

  2. 查看用户名和邮箱地址:

    $ git config user.name$ git config user.email
  3. 修改用户名和邮箱地址:

    $ git config --global user.name "username"$ git config --global user.email "email"

    或者,通过.gitconfig文件中修改用户名和邮箱,如下        

# This is Git's per-user configuration file.[user]# Please adapt and uncomment the following lines:#	name = XXX#	email = XXX@XX.com[user]	name = XXX	email = XXX@XX.com

 

转载于:https://my.oschina.net/iNiL0119/blog/1505471

你可能感兴趣的文章
无需安装SqlServer打开并管理SqlServer数据库的方法
查看>>
linux上NFS性能参数
查看>>
Linux中基于hadoop安装hive(CentOS7+hadoop2.8.0+hive2.1.1)
查看>>
线程的概念
查看>>
Win8 Metro(C#)数字图像处理--2.55OSTU法图像二值化
查看>>
对actuator的管理端点进行ip白名单限制(springBoot添加filter)
查看>>
异步模式
查看>>
MongoDB and GUI 管理界面
查看>>
sqlyog连接Linux上的mysql报错误号码2013,错误号码1130的解决办法
查看>>
获取Android APK JNI库
查看>>
linux系统卡解决方案
查看>>
窗口管理器 Openbox 入门指南
查看>>
Web-Fontmin -- 在线提取你需要的字体
查看>>
Java并发编程:Callable、Future和FutureTask
查看>>
Docker-Compose一键部署Ningx+Asp.net core站点+Redis
查看>>
四说大数据时代“神话”:从大数据到深数据
查看>>
25个经典的Spring面试问答
查看>>
使用阿里云Serverless函数计算实现HTTP健康检查+故障短信通知 ...
查看>>
Mysqlbinlog的一些操作和用法
查看>>
Oracle数据库数据类型
查看>>