GitHub与电脑之间如何建立秘钥
步骤图

step2

step3

step4

step5

step6

step7

step8

step9

step10

step11

step12

如何通过 git bash将文件推送到 github
(前提:确定电脑跟Github间已经搭建好秘钥)

step2

step3

需要注意的问题
- 不要在根目录下操作
-
第一次将本地文件推送到远程仓库时可能会遇见下图所示的问题
解决方法:
注意命令行提示的内容!
运行
git config --global user.email "注册github时的邮箱"
git config --global user.name "注册github的名字" -
出现图片中的 warning:..... 的问题
解决方法:
【参考资料】
https://jscode.me/t/3-git/1691
【推荐学习视频】
https://cn.udacity.com/course/how-to-use-git-and-github--ud775
网友评论