第一次上传文件到github
1.生成SSH秘钥部分
1.在GitHub上建立远程仓库
new repository -> 定义仓库名和是否共享
2.生成SSH秘钥部分
在系统标志下找到Git--Git Bash,打开
3.登录github 在命令行跳出之后,输入如下命令:
git config --global user.name "你注册GitHub账号的名字"
git config --global user.email "你注册GitHub账号用的邮箱.com"
4. 键入命令:cd ~/.ssh生成秘钥
如果没生成则再次输入命令:ssh-keygen -t rsa -C “你注册GitHub账号时用的邮箱”