
git
班公湖里洗过脚
上马击狂胡,下马草军书
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git pull报There is no tracking information for the current branch.Please specify which branch...错误处理
在新电脑上配置了开发环境,使用git clone项目代码,发现代码不是最新的,于是git pull拉取最新代码,结果报“There is no tracking information for the current branch.Please specify which branch you want to merge with。”的错误,本篇记录错误处理方案。原创 2019-01-24 15:23:04 · 30645 阅读 · 0 评论 -
git将tag标记的项目切换为一个分支
最近项目发布后,给发布版本打了一个tag,后来临时出现了一点问题,需要在原来发布的基础上修改,因此直接拉取tag版本代码但是,修改后,这个代码得上传,而只有tag标记的代码没法上传,因此需要在tag的基本上创建一个分支,上传到该分支上,后续如果有修改可以在这个分支上修改,比较方便可控,下面介绍从tag上拉取代码创建新分支,并上传到该分支上的一些基本操作。原创 2019-03-23 19:40:56 · 686 阅读 · 1 评论 -
Git提交代码流程
在开发过程中我们经常使用git作为版本控制工具,在多人开发协作中,有时会遇到代码冲突的问题,在更新的过程中把自己本地的代码给覆盖掉了,这时内心是崩溃的。那么如何处理这些问题呢?下面总结一下Git提交代码流程原创 2019-05-06 09:29:55 · 109 阅读 · 0 评论 -
git 本地创建远程仓库分支
git 本地创建远程仓库分支原创 2020-08-01 08:08:17 · 334 阅读 · 0 评论 -
git切换远程分支
1.查看分支ScottChen@ScottChen-PC MINGW64 /e/git/MyProject (master)(当前分支)$ git branch -a* master remotes/origin/HEAD -> origin/master remotes/origin/MyProject V3.0.0 remotes/origin/MyProjec...原创 2019-03-19 10:23:28 · 4005 阅读 · 0 评论 -
git切换远程仓库
ScottChen@ScottChen-PC MINGW64 /e/git/UImodules (master)$ git remote -vorigin http://192.168.1.211/UIGroup/Mymodules.git (fetch)origin http://192.168.1.211/UIGroup/Mymodules.git (push)ScottChe...原创 2019-03-19 10:18:59 · 3580 阅读 · 0 评论 -
git查看远程仓库地址
命令:$git remote -vScottChen@ScottChen-PC MINGW64 /e/git/CommonControl (developer)$ git remote -vorigin http://192.168.1.200/ScottChen/CommonControl .git (fetch)origin http://192.168.1.200/Scott...原创 2019-03-21 13:29:41 · 109972 阅读 · 0 评论 -
git developer分支合并到master分支
1.查看本地和远程分支$ git branch -a* developer master remotes/origin/developer remotes/origin/master2.切换到本的developer分支$ git checkout -b developer origin/developer如果developer分支已经存在,执行下面这步$ git ...原创 2019-03-18 10:41:41 · 7207 阅读 · 0 评论 -
git创建分支并推送到远程分支上
1.创建分支QtForAndroidV2.0ScottChen@ScottChen-PC MINGW64 /e/git/QtForAndroid (developer)$ git branch QtForAndroidV2.02.查看创建的分支ScottChen@ScottChen-PC MINGW64 /e/git/QtForAndroid (developer)$ git bra...原创 2019-03-18 11:07:20 · 1299 阅读 · 0 评论