Git
一只程序猿小白
前端,努力成为全栈攻城狮
展开
-
git 常用的一些命令
git 常用命令的学习原创 2022-07-11 16:44:24 · 422 阅读 · 0 评论 -
git 提交到远程仓库 报错 error: failed to push some refs to ‘https://xxxxxx.git‘
git 学习地址参考链接报错如下error: failed to push some refs to 'https://github.com/GDDXZ/RobotDenso.git'hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to t原创 2021-07-14 10:01:05 · 577 阅读 · 0 评论 -
git 如何把分支代码合并到master主分支上,主分支的代码如何合并到自己分支
1.首先切换到分支;git checkout [ your branch ]2.使用 git pull 把分支代码pull下来;git pull3.切换到主分支 (例如:主分支为master)git checkout master4.把分支的代码合并到主分支;git merge [ your branch ]5.git pushgit push推上去以后,自己分支的代码就合并到主分支上了。原文链接:https://blog.csdn.net/yuanmengdage/arti原创 2021-07-14 09:40:56 · 1777 阅读 · 0 评论 -
git提交时报错:Updates were rejected because the tip of your current branch is behind
这个问题是 当前分支的代码不是最新,需要去master分支更新最新1、首先切换到master 分支git checkout master2、push之前 先 pull 一下git pull origin master3、pushgit push -u origin master4、切换到自己的分支git checkout [ you branch ]5、合并指定分支到当前分支git merge master6、pushgit add ....... (其他操作)git原创 2021-07-14 09:34:51 · 319 阅读 · 0 评论 -
Git 提交代码时失败 error: Unable to create 'E:/cst/ncPc/cloudTree/.git/index.lock': File exists.
1、报错如下:2、解决方法:在项目文件夹中的 搜索index.lock,删除index.lock文件即可。(在.git文件夹中也可找到)3、重新提交代码,则提交成功。...原创 2020-02-21 16:58:59 · 610 阅读 · 0 评论