Setting your email in Git
2016-01-04 14:17
435 查看
本文转载至:https://help.github.com/articles/setting-your-email-in-git/
简述:
使用下面的命令设置全局的邮箱。
使用下面的命令设置本地的邮箱。(仅是当前的repo)
GitHub uses the email address you set in your local Git configuration to associate commits with your GitHub account.
Setting your
The
The setting you want to change--in this case,
Your new email address--for example,
Your email address will be visible on commits to GitHub. If you'd like to keep your email address private, set your Git config email to
"Keeping your email address private".
Setting your
Open Terminal (for Mac and Linux users) or the command prompt (for Windows users).
Set your email address with the following command:
Confirm that you have set your email address correctly with the following command.
Open Terminal (for Mac and Linux users) or the command prompt (for Windows users).
Change the current working directory to the local repository in which you want to set your Git config email.
Set your email address with the following command:
Confirm that you have set your email address correctly with the following command.
简述:
使用下面的命令设置全局的邮箱。
git config --global user.email "your_email@example.com"
使用下面的命令设置本地的邮箱。(仅是当前的repo)
git config user.email "your_email@example.com"
GitHub uses the email address you set in your local Git configuration to associate commits with your GitHub account.
Setting your
local Git email address using the git config
command
The git configcommand can be used to change your Git configuration settings,including your email address. It takes two arguments:
The setting you want to change--in this case,
user.email.
Your new email address--for example,
your_email@example.com. Be sure to use your own real, unique email address.
Your email address will be visible on commits to GitHub. If you'd like to keep your email address private, set your Git config email to
username@users.noreply.github.cominstead, replacing
usernamewith your GitHub username. For more information, see
"Keeping your email address private".
Setting your
email address for every repository on your computer
Open Terminal (for Mac and Linux users) or the command prompt (for Windows users).Set your email address with the following command:
git config --global user.email "your_email@example.com"
Confirm that you have set your email address correctly with the following command.
git config --global user.email your_email@example.com
Setting your email address for a single repository
You may need to set a different email address for a single repository, such as a work email address for a work-related project.Open Terminal (for Mac and Linux users) or the command prompt (for Windows users).
Change the current working directory to the local repository in which you want to set your Git config email.
Set your email address with the following command:
git config user.email "your_email@example.com"
Confirm that you have set your email address correctly with the following command.
git config user.email your_email@example.com
相关文章推荐
- 发送邮件(E-mail)方法整理合集
- 集群单节点任务Failover
- [dubbo] dubbo No provider available for the service
- Filestream/Windows Share导致Alwayson Failover失败
- LeetCode 219:Contains Duplicate II
- 简单使用 SSKeychain 存储密码
- NSLayoutConstraint 简单理解
- hadoop jps出现process information unavailable提示解决办法
- Fzuoj 2216 The Longest Straight 【二分 || 模拟】
- Saiku去掉登录模块
- Facebook人工智能负责人Yann LeCun谈深度学习的局限性
- QDU65 again and again(字典序暴力or字典树)
- 151219DuoTaiDemo
- 趣说游戏AI开发:对状态机的褒扬和批判
- [Android Pro] 网络流量安全测试工具Nogotofail
- VT-x is not available (VERR_VMX_NO_VMX) 的解决方案
- OC对象的retainCount(引用计数器)
- VMfailVaild 错误号
- 【science封面文章】Human-level concept learning through probabilistic program induction
- LeetCode之Climbing Stairs与斐波那契数列的联想