项目上传到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博客

相关推荐
砖厂小工16 小时前
用 GLM + OpenClaw 打造你的 AI PR Review Agent — 让龙虾帮你审代码
android·github
程序员鱼皮16 小时前
又一个新项目完结,我要出海了!
ai·github·开源项目
徐小夕16 小时前
pxcharts-vue:一款专为 Vue3 打造的开源多维表格解决方案
前端·vue.js·github
Moment17 小时前
想要长期陪伴你的助理?先从部署一个 OpenClaw 开始 😍😍😍
前端·后端·github
我叫黑大帅17 小时前
前端如何利用 GitHub Actions 自动构建并发布到 GitHub Pages?
前端·面试·github
HelloGitHub19 小时前
这个年轻的开源项目,想让每个人都能拥有自己的专业级 AI 智能体
开源·github·agent
刘发财1 天前
弃用html2pdf.js,这个html转pdf方案能力是它的几十倍
前端·javascript·github
sunny8651 天前
Claude Code 跨会话上下文恢复:从 8 次纠正到 0 次的工程实践
人工智能·开源·github
ZengLiangYi2 天前
Git Tag + Semver + CI/CD:从打标签到自动发布的完整实践
github