github中下载zip后,本地仓库如何与github上的项目相关联

有时候网速问题,git clone 太慢,就直接下载zip文件,然后再进行关联

1、下载zip

2、解压,把文件夹名称中-main去掉

3、进行关联

cd <repo>
git init
git add .
git remote add origin https://github.com/<user>/<repo>.git

4、在GitHub desktops 中添加刚刚的文件夹,就可以完成更新

相关推荐
go54631584655 小时前
指导初学者使用Anaconda运行GitHub上One - DM项目的步骤
github
时光追逐者19 小时前
Visual Studio使用GitHub Copilot提高.NET开发工作效率
c#·github·.net·copilot·ai编程·微软技术·visual studio
油泼辣子多加1 天前
2025年02月01日Github流行趋势
github
萨文 摩尔杰1 天前
hexo部署到github page时,hexo d后page里面绑定的个人域名消失的问题
github
油泼辣子多加2 天前
2025年01月31日Github流行趋势
github
Ronin-Lotus2 天前
上位机知识篇---Git&GitHub
git·学习·github
AI悦创|编程1v13 天前
GitHub Actions定时任务配置完全指南:从Cron语法到实战示例
github
**kwargs3 天前
ssh密钥登录GitHub时一直提示“Error: Permission denied (publickey)”
运维·ssh·github
dreadp3 天前
解锁豆瓣高清海报:深度爬虫与requests进阶之路
前端·爬虫·python·beautifulsoup·github·requests
江_小_白4 天前
fatal: unable to access ‘https://github
github