git push GitHub 的使用

1、下载git  安装

2、注册GitHub ,登录

3、设置git 的用户名 和邮箱

git config --global user.name "dangjian"
	
git config --global user.email mmszxcdj@gmail.com

3、设置ssh_key

 

打开id_rsa.pub 文件复制,到GitHub上

 

 

Git clone   不要使用https  clone

添加到版本控制,提交,推送到远端

 

 

 

 

GitHub弹窗输入账户密码

因为使用了https clone 才导致的

 

posted @ 2021-10-20 11:05  mmszxc  阅读(82)  评论(0)    收藏  举报