设置ubuntu 下git 的用户名和邮箱

设置ubuntu 下git 的用户名和邮箱

摘自  慢慢修远路,上下求索心http://yanshaozhi.iteye.com/blog/386752

虽然我没看怎么明白 但我用第一总方法就设置好了,设置好了是不会有提示的。

设置好以后就用 :git config --list 命令查看。

Guides: Tell git your user name and email address 
Git needs to know your username and email address to properly tag your commits. This is normally done on a global level:

[~]$ git config --global user.name "lubin"

[~]$ git config --global user.email [email protected]

You can override these settings on a per-repo basis:

[~/path/to/repo]$ git config user.name "lubin"

[~/path/to/repo]$ git config user.email [email protected]

This change will only affect future commits. Past commits will retain the username and address they were committed with.

Some tools will assume your github config is in the same place (http://github.com/blog/180-local-github-config):

[~]$ git config --global github.user lubin

[~]$ git config --global github.token 6ef8395fecf207165f1a82178ae1b984

时间: 2024-08-03 06:46:21

设置ubuntu 下git 的用户名和邮箱的相关文章

ubuntu下git安装及使用

ssh目录在etc/ssh下 如何在本地使用git http://jingyan.baidu.com/album/295430f1c62c900c7e0050fd.html?picindex=1 参考:1. ubuntu下git安装及使用 http://www.cnblogs.com/jackge/archive/2013/08/17/3264801.html 2. 多 SSH Key 管理技巧与 Git 多账户登录问题 http://blog.csdn.net/forlong401/artic

初次安装git配置用户名和邮箱

初次安装git配置用户名和邮箱 初次安装git需要配置用户名和邮箱,否则git会提示:please tell me who you are. 你需要运行命令来配置你的用户名和邮箱: $ git config --global user.name "superGG1990" $ git config --global user.email "[email protected]" 注意:(引号内请输入你自己设置的名字,和你自己的邮箱)此用户名和邮箱是git提交代码时用来

zbb20180103 git 配置用户名和邮箱

git 配置用户名和邮箱 在安装了git for windows之后,个人总是忘记配置git config的命令,以此记录一下: 配置用户名和邮箱的命令 1 git config --global user.name "youname" 2 git config --global user.email "[email protected]" 最后可以通过 git config -l 这个命令查看已配置的用户名和邮箱信息 原文地址:https://www.cnblog

windows和ubuntu下git commit提交后如何保存和退出,回到命令行

问题一: windows下git commit后会进入vim界面,不知道怎么操作 解决办法: 1.输入小写字母i,此时进入编辑模式,可以输入你想输入的内容 2.按下esc键,此时退出编辑模式,输入英文语法下的冒号:,再输入wq即可保存退出 3.也可以按下esc退出编辑模式之后连续按输入两个大写字母Z退出 问题二: Ubuntu下git commit后会进入类似vim界面,不知道怎么操作 解决办法: 1.Ubuntu下git commit后进入的是nano界面 2.输入需要内容后按下ctrl+x会

Ubuntu下Git的安装与使用

不积跬步,无以至千里.不积小流,无以成江海. <劝学篇>-- 荀子 Pro git简体中文版  http://iissnan.com/progit/ 1 安装 安装方式主要有两种,即通过Apt和source: 1.1 通过Apt安装: 官网上提供的命令是: $ sudo add-apt-repository ppa:git-core/ppa 中间暂停时,按回车键Enter继续安装. $ sudo apt-get update $ sudo apt-get install git 安装下载完成后

Git配置用户名和邮箱

一.git配置提交用户名和邮箱 git config user.name "zhengyong" git config user.email '[email protected]' 二.生成公钥私钥 1.ssh-keygen -t rsa -C "[email protected]"

git 配置用户名和邮箱

在安装了git for windows之后,个人总是忘记配置git config的命令,以此记录一下: 配置用户名和邮箱的命令 1 git config --global user.name "youname" 2 git config --global user.name "[email protected]"

git修改用户名和邮箱

用户名和邮箱地址是本地git客户端的一个变量,不随git库而改变. 每次commit都会用用户名和邮箱纪录. 1.查看用户名和地址 git config user.name git config user.email 2.修改用户名和地址 git config --global user.name "your name" git config --global user.email "your email" 原文地址:https://www.cnblogs.com/

Ubuntu下 git 服务器的搭建【转】

转自:http://www.open-open.com/lib/view/open1391477731082.html 搭建git服务器的4个步骤 1   配置服务器前的准备工作 首先ubuntu系统要联网 安装了git,openssh-server和openssh-client软件,并检测是否开启. rpm -qa | grep -i git (查看是否安装git) sudo apt-get install git sudo apt-get install openssh-server sud