- sts拉取 STS或者Eclipse 利用 Git 从 GitLab上面拉代码到本地_依着风睡的博客-CSDN博客
- 克隆
- git clone https://gitee.com/abc/def.git //git clone +你的项目地
-
下载成功后需要切换 文件目录 cd 项目文件名
-
npm install 下载依赖包npm run dev 运行环境
-
今天提交git仓库的时候,遇到了如截图所示的问题,提示Your branch is up-to-date with 'origin/master'.
On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit:
-
操作截图
-
操作命令集过程
这时候我们就需要新建一个分支$ git branch newbranch
然后检查分支是否创建成功
$ git branch
会有如下提示(前面的*代表的是当前你所在的工作分支)
然后切换到你的新分支
$ git checkout newbranch
如果不放心,还可以 $ git branch确认下
然后将你的改动提交到新分支上
$ git add . $ git commit -m "18.03.01"
然后
git status
检查是否成功然后切换到主分支
$ git checkout master
然后将新分支提交的改动合并到主分支上
$ git merge newbranch
然后就可以push代码了
$ git push -u origin master
最后还可以删除这个分支
-
bug解决
在执行git pull origin master时出现:
fatal: ‘origin’ does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists解决方案:
git remote add origin git@github:bx_reader/bx-reader-api.git将关联远程仓库为origin
Vs Code码云拉取新项目步骤详解
最新推荐文章于 2024-05-23 09:00:51 发布