1.检查本机是否有ssh key设置,切换到.ssh目录 $ cd ~/.ssh 或cd .ssh 2.配置git用户名和邮箱,配置多个用户时添加 --add 参数 $ git config --global --add user.name "username" $ git config --global --add user.email "email" $ git config --global --unset user.name "username" #移除用户...
git config --global user.name “Your Name”名字写成自己的名字 git config --global user.email “email@example.com”邮箱写自己的邮箱 git 初始化 :git init 一直回车就可以看到id_rsa和id_rsa.pub这两个文件 把刚才id_rsa.pub里面的内容复制到Title下面的Key内容框里面,最后点击Add SSH key,这样就完成...
git config --global user.name "long" git config --global user.email "@163.com" 2. 本地机器生成ssh key ssh-keygen -t rsa -C "@163.com" 回车默认即可,不要关闭。 3. 在github添加ssh key 点击New SSH key 4. 添加Key的内容 Key是生成的id_rsa.pub的内容,windows可以直接记事本打开。 在...
git config --global user.email "xxxxx@xx.com" 此处分别指工程文件名,和gitlab账号绑定的邮箱地址。 3.输入:ssh-keygen -t rsa -C "xxxx@xxxx.com"(xxx为上一句输入的邮箱地址)语句,回车之后生成SSH key,后面出现让输入口令的语句,直接按回车即可,如下图所示,这样系统路径下就生成了两个文件:id_rsa和id...
在本地的Git客户端中配置SSH密钥。 1. 打开终端或命令提示符。 2. 输入以下命令来配置Git客户端: “` git config –global user.name “Your Name” git config –global user.email “your_email@example.com” “` 其中,“Your Name”和“your_email@example.com”应替换为您的用户名和电子邮件地址。
gitconfig--globaluser.name"name"gitconfig--globaluser.email"email" name和email是注册github的昵称和邮箱。 git配置SSH Key 1、 打开git bash.exe 2、检查是否已经有SSH Key$ cd ~/.ssh 3、生成SSH Keyssh-keygen -t rsa -C "youremail"
1. 先查看一下未设置前的config cat .git/config 2. $ git config user.name "xianbai” 配置用户名 3. $ git config user.email xianbai@example.com 配置邮箱 4. 查看修改后的项目配置cat .git/config 1. 2. 3. 4. 5. 6. - >>>生成SSH密钥过程: 1.查看是否...
2.查看 ssh key cat~/.ssh/gitee_id_rsa.pub# sudo cat /var/root/.ssh/gitee_id_rsa.pub# ssh-rsa AAAAB3NzaC1yc2EAAAADAQAB... 3:复制内容到gitee添加 SSH key 三、创建 SSH 用户配置文件 config touch~/.ssh/config# sudo touch /var/root/.ssh/config ...
Windows平台下,首先安装Git . 设置 git config --global user.email "youremail@example.com" 同样 的设置 git config --global user.name "example" git输入命令 ssh-keygen -t rsa -C "youremail@example.com" windows下在user/用...