首页 > 其他 > 详细

GitHub 新手教程 三,Git Bash

时间:2019-01-16 16:13:41      阅读:157      评论:0      收藏:0      [点我收藏+]

1,通过 开始菜单 启动 Git Bash,或者 在 cmd 下执行以下命令:

D:\SoftWare\Git\git-bash.exe --cd-to-home

(D:\SoftWare\Git 是您 GitHub 的安装路径)

2,Git Bash 启动后,输入以下命令:

ssh-keygen -t rsa -C "你注册时的邮箱"

Enter file in which to save the key : 回车
Enter passphrase (empty for no passphrase): 回车
Enter same passphrase again: 回车

git config --global user.name "你的仓库名称"
git config --global user.email "你注册时的邮箱"
ssh -T git@github.com

然后,你需要等待一会儿,

Are you sure you want to continue connecting (yes/no)? yes
这里输入 yes 然后 回车。

3,输入:

exit

退出 Git Bash。

GitHub 新手教程 三,Git Bash

原文:https://www.cnblogs.com/wqMV/p/10270508.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!