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。

完成。

相关推荐
徐小夕3 小时前
pxcharts Ultra V2.3更新:多维表一键导出 PDF,渲染兼容性拉满!
vue.js·算法·github
开源之眼4 小时前
《github star 加星 Taimili.com 艾米莉 》为什么Java里面,Service 层不直接返回 Result 对象?
java·后端·github
逛逛GitHub5 小时前
OpenClaw之父多次点名!国产 Agent 进入真干活时代。
github
郭钊荣6 小时前
为什么 OpenClaw 能出圈:扒一扒小龙虾的agent系统设计
后端·github
Moment7 小时前
Cursor 的 5 种指令方法比较,你最喜欢哪一种?
前端·后端·github
子兮曰17 小时前
async/await高级模式:async迭代器、错误边界与并发控制
前端·javascript·github
崔庆才丨静觅1 天前
Claude Code GitHub Actions 使用教程
github·api·claude
砖厂小工2 天前
用 GLM + OpenClaw 打造你的 AI PR Review Agent — 让龙虾帮你审代码
android·github