![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
github
一个平平无奇的小高
(学习笔记)主要用于记录学习中遇到的问题,仅供参考。。
展开
-
git操作 写新需求忘记拉分支了怎么办
场景:写需求1的时候忘记拉分支,直接写在了master上,并且提交到了远端仓库。现有需求2(还未开发)要求在6月18号之前发布,需求1在6月底发布,怎样操作才能保证只发布需求2?解决办法:git checkout -b dev-le 版本号 //dev-le为新建分支的名字,可自定义git push origin dev-le:dev-le //将新建的分支推到远端其中:版本号为提交需求1的上一次提交的版本号如图所示:.........原创 2022-05-30 19:46:15 · 729 阅读 · 0 评论 -
上传本地项目到github仓库
笔记:上传本地项目到github仓库:找到存放项目的文件夹鼠标选中,右键选择Git Bash Heregit initgit addgit commit -m “描述信息(自定义)”eg. git commit -m “第一次提交”git remote add origin http…(github中你要存放项目的仓库的地址)eg. git remote add origin https://github.com/Gladiola-fei/web.gitgit push -u orig原创 2020-10-18 17:30:49 · 94 阅读 · 0 评论