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 中添加刚刚的文件夹,就可以完成更新

相关推荐
起个名字总是说已存在2 小时前
github开源AI 拓展工具:Agent Reach
人工智能·github·dreamweaver
小雨青年3 小时前
GitHub Copilot 默认启用训练之后 企业安全如何应对
安全·github·copilot
攀登的牵牛花5 小时前
2.1w Star 的 pretext 火在哪?
前端·github
糖猫猫_5 小时前
Kite 实现逻辑删除
后端·github
一叶萩Charles5 小时前
GitHub AI Agent 开源生态概览
人工智能·开源·github
bxri5 小时前
团队协作中的 Git 工作流(企业级实战)
git·gitee·github
第一程序员6 小时前
Python与容器化:Docker和Kubernetes实战
python·github
CoderJia程序员甲6 小时前
GitHub 热榜项目 - 日榜(2026-03-30)
人工智能·ai·大模型·github·ai教程
MicrosoftReactor7 小时前
技术速递|从想法到拉取请求:使用 GitHub Copilot CLI 构建的实用指南
github·copilot·cli
汪海游龙7 小时前
03.31 AI 精选:把通用设备改造成网络路由器的方法
github