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。

完成。

相关推荐
xuhe232 分钟前
[全流程详细教程]Docker部署ClawBot, 使用GLM4.7, 接入TG Bot实现私人助理. 解决Docker Openclaw Permission Denied问题
linux·docker·ai·github·tldr
宇宙帅猴1 小时前
GitHub 私有仓库认证完整指南:告别密码错误,使用 PAT 令牌
github
前端市界4 小时前
用 React 手搓一个 3D 翻页书籍组件,呼吸海浪式翻页,交互体验带感!
前端·架构·github
happyprince4 小时前
2026年02月07日热门github项目
github
CoderJia程序员甲5 小时前
GitHub 热榜项目 - 日榜(2026-02-06)
人工智能·ai·大模型·github·ai教程
荔枝吻6 小时前
忘记服务器密码,在Xshell7中查看已保存密码
运维·服务器·github
tod1139 小时前
TCP全连接队列与tcpdump抓包
网络·网络协议·tcp/ip·github·tcpdump
Luck_ff08109 小时前
百度指数数据采集与可视化平台 BaiduIndexHunter
github·开源软件
阿里嘎多学长9 小时前
2026-02-03 GitHub 热点项目精选
开发语言·程序员·github·代码托管
子兮曰16 小时前
OpenClaw入门:从零开始搭建你的私有化AI助手
前端·架构·github