上传本地文件到github

创建SSH通道

输入

bash 复制代码
ssh-keygen -t rsa -C "github登录邮箱"

记事本打开上面这个文件,复制里面的key,登录github


上传文件

新建一个空的文件夹

先初始化,再配置邮箱和名字

bash 复制代码
git init
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

复制需要上传仓库的SSH链接

成功后仓库里就有这个aaa.txt了

相关推荐
Cliven_2 小时前
Github自动打包推送Maven中央仓库
java·github·maven
DarrenPig11 小时前
【常州工NEC】ROBOCON小白入门之路(二)2026CURC-NEC赛季规划
开源·github·交流·robocon
ccino .17 小时前
【将更改从 GitHub Desktop 推送到 GitHub】
github
lpfasd12317 小时前
PyGithub用法详解
git·python·github
沉淀の沙19 小时前
1-20[IDEA远程链接GitHub失效问题]
github
007张三丰19 小时前
git中的SSH 公钥配置详细指南(GitHub、GitLab、Gitee平台适用)
git·ssh·github
Xiaok101819 小时前
解决GitHub双重认证问题:使用Chrome插件Authenticator
chrome·github·2fa
CoderJia程序员甲19 小时前
GitHub 热榜项目 - 日榜(2026-01-20)
开源·大模型·llm·github·ai教程
我寄人间雪满头丶20 小时前
GitHub 私有仓库 SSH 访问配置 SOP(Mac / Windows 通用)
macos·ssh·github