GitHub Desktop 上传流程

GitHub Desktop 上传流程

摘要:本文总结一下用 GitHub Desktop 上传代码的详细步骤。


步骤 1:打开 GitHub Desktop

如果没安装:
https://desktop.github.com/


步骤 2:添加项目路径

  1. File → Add local repository...
  2. 选择 某一个项目文件夹(例如 JSPChatroom)。
  3. 点击 Add Repository。
  4. 若该文件夹没有 Git,会提示创建:
  5. 点击 Create a repository

步骤 3:选择 Git Ignore(非常重要)

点击:

  • Repository → Repository Settings → Git Ignore

根据项目选择模板:

  • Python → 选择 Python ignore
  • Jakarta EE → 选择 Java ignore
  • Maven → 自动忽略 target/
  • Gradle → 自动忽略 build/
  • ASP.NET → 选择 VisualStudio ignore
  • Linux Shell → 选择 None(可选)

这样就不会上传垃圾文件。


步骤 4:首次提交(Commit)

右侧 Changes 显示所有文件,填写:

  • Summary:Initial commit

点击:

  • Commit to main

步骤 5:推送到 GitHub(Publish)

右上角点击:

Publish repository

设置:

  • 名称:建议统一格式,例如
    • python-chatbot
    • jakartaee-jspchatroom
    • aspnet-webapi
    • linux-deploy-tools
  • Visibility:Public 或 Private

点击 Publish。

完成。

相关推荐
深蓝AI7 小时前
GitHub的Push一年涨4.9倍:AI Agent为什么逼它重做Git存储?
人工智能·github
zhengqweasd10 小时前
机房托管服务器怎么选硬盘,机械盘和 SSD 托管场景差异
运维·服务器·github
七牛云行业应用13 小时前
OpenCode 报错 Rate limit exceeded:限流原因、日志定位与修复步骤(2026 年 10 月)
人工智能·github
SL_staff13 小时前
目标健康度自检清单:开发者视角下的目标-计划-任务链路断点诊断
java·开源·github
SL_staff13 小时前
设备越多系统越崩?根源在三层抽象失效
spring boot·物联网·github
北极象14 小时前
Adobe全家桶被AI克隆,github地址
adobe·github
来自于狂人16 小时前
GitHub 开源趋势日报 | 2026年10月9日
开源·github
wflynn16 小时前
GitHub 今日推荐|wordcraft:用 Rust 重写 Word 内核并开放给 AI 调用
rust·开源·github
用户8132679332518 小时前
行情数据晚到几秒,会让量化策略失去优势吗?从信号时间到回测偏差
后端·github·api