如何将本地项目上传至github

第一步:为本地项目生成requirements.txt 和 README.md 文件;

第二步:登录github,找到

点击new ,即创建新的仓库;

第三步:填写仓库名字、描述

生成仓库地址

第四步:进入代码目录下,使用git

1.初始化

2.添加文件到临时区

  1. 进行第一次提交

  2. 将本地仓库连接到 GitHub 远程仓库

  3. 推送本地的 master 分支到远程的 main 分支

    git init
    git add .
    git commit -m "Initial commit"
    git remote add origin https://github.com/xxx/dynamic_hysys_python.git
    git push -u origin master:main

相关推荐
爱吃苹果的梨叔7 小时前
2026年KVM over IP采购指南:BIOS级接管、并发和审计怎么验收
ide·python·tcp/ip·github
OsDepK8 小时前
获取免费API讯飞星辰maas平台
ide·github
OpenIM8 小时前
mage跨平台构建说明
开源·github·信息与通信
徐小夕11 小时前
我们放弃了单Agent方案:HiCAD 3.0 用 Harness 做多Agent编排,把3D建模的准确率提升了30%
前端·算法·github
Java面试题总结11 小时前
MarkItDown 再次登顶GitHub榜
开发语言·c#·github
佛系豪豪吖12 小时前
AtomCode 部署流程与使用经验
笔记·chatgpt·github·ai编程·gitcode
宝桥南山13 小时前
GitHub Copilot - 尝试使用一下Azure Devops MCP server
microsoft·微软·github·aigc·copilot·devops
MicrosoftReactor13 小时前
技术速递|提升 GitHub Agentic Workflows 的 Token 使用效率
ai·github·copilot·智能体
DogDaoDao13 小时前
【GitHub】last30days-skill 深度技术解析
深度学习·程序员·大模型·github·ai agent·agent skill
IT WorryFree13 小时前
GitHub / Gitee / Gitea / GitLab 四平台完整对比(定位、优缺点、适用场景)
gitee·github·gitea