项目上传到github中

一、创建个springboot项目

二、打开github,创建仓库

三、创建仓库,仓库名可与项目名一样

三、找到项目所在目录,打开git Bush Here

三、依次输入以下命令

git init
git add .
git commit -m "first commit"
下面这两行若已经设置可不输入

git config --global user.email "wu_xie666@163.com"

git config --global user.name "wuzk"
git commit -m "first commit"
git remote add origin https://github.com/wuxie666/wuzk.git
push的时候因为网络问题会多次失败,需要很多次重试,可恶的网络(还好我开了代理)

git push -u origin master

好的,到这里就push成功了,去github上刷新下看看push上的项目

另外,在IDEA中commit和push的时候会要求登录github,可创建个token,登录github,这样就可以正常push代码了,创建token的链接如下:

IDEA使用token登录github_idea github token-CSDN博客

相关推荐
峰向AI8 小时前
告别 API 费用! 这个开源工具让你的 AI 助手在本地运行
github
乱码三千10 小时前
使用ComfyUI+MinMax-H3音视频模型生成视频
前端·后端·github
LiaCode11 小时前
别让 AI 把仓库写成“代码平行宇宙”:从 Deslop 看生成前查重
前端·后端·github
m4Rk_12 小时前
【论文阅读】Agent 记忆机制(62):DCM-Agent——用双簇记忆化解优化问题的多范式冲突
论文阅读·人工智能·学习·开源·github
逛逛GitHub13 小时前
GPT-6 Astra 上线 24 小时,看看外网爆火的惊艳玩法。
github
golang学习记13 小时前
Cursor Origin:Cursor要造一个AI时代的Github
人工智能·github·cursor
u13013013 小时前
GitHub 热榜项目:日榜(2026-09-06)
github
mr_g14 小时前
SmartCall源码解析:实时对话轮次拦截器RealtimeTurnInterceptor实现原理
github
zzzll111116 小时前
新手如何使用 GitHub?从零开始的完整入门指南
github
CoderJia程序员甲17 小时前
GitHub 热榜项目 - 周榜(2026-09-06)
ai·大模型·llm·github·ai教程