当前位置: 首页 > news >正文

福建凭祥建设工程有限公司网站个人网站有什么内容

福建凭祥建设工程有限公司网站,个人网站有什么内容,沥林行业网站建设,网站转小程序工具一、多人协作二 1.1多人协作 一般情况下#xff0c;如果有多需求需要多人同时进行开发#xff0c;是不会在一个分支上进行多人开发#xff0c;而是一个需求或一个功能点就要创建一个feature 分支。 现在同时有两个需求需要你和你的小伙伴进行开发#xff0c;那么你们俩便…一、多人协作二 1.1多人协作 一般情况下如果有多需求需要多人同时进行开发是不会在一个分支上进行多人开发而是一个需求或一个功能点就要创建一个feature 分支。 现在同时有两个需求需要你和你的小伙伴进行开发那么你们俩便可以各自创建一个分支来完成自己的工作。在上个部分我们已经了解了可以从码云上直接创建远程分支其实在本地创建的分支也可以通过推送的方式发送到远端。在这个部分我们就来用一下这种方式。 对于你来说可以进行以下操作 # 新增本地分支 feature-1 并切换 hyb139-159-150-152:~/git_teaching$ git branch dev * master hyb139-159-150-152:~/git_teaching$ git checkout -b feature-1 Switched to a new branch feature-1 # 新增需求内容-创建function1文件 hyb139-159-150-152:~/git_teaching$ vim function1 hyb139-159-150-152:~/git_teaching$ cat function1 Done! # 将 feature-1 分支推送到远端 hyb139-159-150-152:~/git_teaching$ git add function1 hyb139-159-150-152:~/git_teaching$ git commit -madd function1 [feature-1 12ed0db] add function1 1 file changed, 1 insertion() create mode 100644 function1 hyb139-159-150-152:~/git_teaching$ git push origin feature-1 Enumerating objects: 4, done. Counting objects: 100% (4/4), done. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 270 bytes | 270.00 KiB/s, done. Total 3 (delta 1), reused 0 (delta 0) remote: Powered by GITEE.COM [GNK-6.4] remote: Create a pull request for feature-1 on Gitee by visiting: remote: https://gitee.com/hyb91/git_teaching/pull/new/hyb91:feature-1...hyb9 To gitee.com:hyb91/git_teaching.git * [new branch] feature-1 - feature-1 对于小伙伴来说可以进行以下操作 此时在本地你看不见他新建的文档他看不见你新建的文档。并且推送各自的分支时并没有任何冲突你俩互不影响用起来很舒服  再来看下远端码云上此时的状态 对于你的 feature-1 分支 对于小伙伴的 feature-2 分支  正常情况下你俩就可以在自己的分支上进行专业的开发了 但天有不测风云你的小伙伴突然生病了但需求还没开发完需要你帮他继续开发于是他便把 feature-2 分支名告诉你了。这时你就需要在自己的机器上切换到 feature-2 分支帮忙继续开发要做的操作如下  # 必须先拉取远端仓库内容 hyb139-159-150-152:~/git_teaching$ git pull ... From gitee.com:hyb91/git_teaching 305f78a..72c5345 dev - origin/dev * [new branch] feature-2 - origin/feature-2 ... # 可以看到远程已经有了feature-2 hyb139-159-150-152:~/git_teaching$ git branch -a dev * feature-1 master remotes/origin/HEAD - origin/master remotes/origin/dev remotes/origin/feature-1 remotes/origin/feature-2 remotes/origin/master # 切换到feature-2分支上可以和远程的feature-2分支关联起来 # 否则将来只使用 git push 推送内容会失败 hyb139-159-150-152:~/git_teaching$ git checkout -b feature-2 origin/feature-2 Branch feature-2 set up to track remote branch feature-2 from origin. Switched to a new branch feature-2 hyb139-159-150-152:~/git_teaching$ ls a.so b.ini file.txt function2 README.en.md README.md 切换成功后便可以看见 feature-2 分支中的 function2 文件了接着就可以帮小伙伴进行开发 # 继续开发 hyb139-159-150-152:~/git_teaching$ vim function2 hyb139-159-150-152:~/git_teaching$ cat function2 Done! Help done! # 推送内容 hyb139-159-150-152:~/git_teaching$ git add function2 hyb139-159-150-152:~/git_teaching$ git commit -mmodify function2 [feature-2 1079ae7] modify function2 1 file changed, 2 insertions(), 1 deletion(-) hyb139-159-150-152:~/git_teaching$ git push origin feature-2 Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 262 bytes | 262.00 KiB/s, done. Total 3 (delta 1), reused 0 (delta 0) remote: Powered by GITEE.COM [GNK-6.4] To gitee.com:hyb91/git_teaching.git e1233f1..1079ae7 feature-2 - feature-2 查看远程状态推送成功了 这时你的小伙伴已经修养的差不多可以继续进行自己的开发工作那么他首先要获取到你帮他开发的内容然后接着你的代码继续开发。或者你已经帮他开发完了那他也需要在自己的电脑上看看你帮他写的代码  Pull 无效的原因是小伙伴没有指定本地 feature-2 分支与远程 origin/feature-2 分支的链接根据提 示设置feature-2和origin/feature-2的链接即可 目前小伙伴的本地代码和远端保持严格一致。你和你的小伙伴可以继续在不同的分支下进行协同开发了。各自功能开发完毕后不要忘记我们需要将代码合并到master中才算真正意义上的开发完毕。由于你的小伙伴率先开发完毕于是开始 merge   此时远程仓库的状态  当你的小伙伴将其代码merge 到master 后这是你也开发完成了也需要进行 merge 到 master 操作于是你 # 切换至 master分支, pull 一下保证本地的master是最新内容。 # 合并前这么做是一个好习惯 hyb139-159-150-152:~/git_teaching$ git checkout master Switched to branch master Your branch is up to date with origin/master. hyb139-159-150-152:~/git_teaching$ git pull From gitee.com:hyb91/git_teaching 72c5345..29006bd master - origin/master Updating 72c5345..29006bd Fast-forward function2 | 2 1 file changed, 2 insertions() create mode 100644 function2 # 切换至 feature-1 分支, 合并 master 分支 # 这么做是因为如果有冲突可以在feature-1分支上进行处理而不是在在master上解决冲突。 # 这么做是一个好习惯 hyb139-159-150-152:~/git_teaching$ git checkout feature-1 Switched to branch feature-1 Your branch is up to date with origin/feature-1. hyb139-159-150-152:~/git_teaching$ git merge master Merge made by the recursive strategy. function2 | 2 1 file changed, 2 insertions() create mode 100644 function2 hyb139-159-150-152:~/git_teaching$ ls a.so b.ini file.txt function1 function2 README.en.md README.md # 1、由于feature-1分支已经merge进来了新内容为了保证远程分支最新所以最好push一下。 # 2、要 push 的另一个原因是因为在实际的开发中master的merge操作一般不是由我们自己在本地进 # 其他人员或某些平台merge时操作的肯定是远程分支所以就要保证远程分支的最新。 # 3、如果 merge 出现冲突不要忘记需要commit才可以push!! hyb139-159-150-152:~/git_teaching$ git status On branch feature-1 Your branch is ahead of origin/feature-1 by 4 commits. (use git push to publish your local commits) nothing to commit, working tree clean hyb139-159-150-152:~/git_teaching$ git push origin feature-1 Enumerating objects: 4, done. Counting objects: 100% (4/4), done. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 299 bytes | 299.00 KiB/s, done. Total 2 (delta 1), reused 0 (delta 0) remote: Powered by GITEE.COM [GNK-6.4] To gitee.com:hyb91/git_teaching.git ea75a35..4b4c3d4 feature-1 - feature-1 # 切换至 master 分支合并 feature-1 分支 hyb139-159-150-152:~/git_teaching$ git checkout master Switched to branch master Your branch is up to date with origin/master. hyb139-159-150-152:~/git_teaching$ git merge feature-1 Updating 29006bd..4b4c3d4 Fast-forward function1 | 1 1 file changed, 1 insertion() create mode 100644 function1 hyb139-159-150-152:~/git_teaching$ ls a.so b.ini file.txt function1 function2 README.en.md README.md # 将 master 分支推送至远端 hyb139-159-150-152:~/git_teaching$ git status On branch master Your branch is ahead of origin/master by 3 commits. (use git push to publish your local commits) nothing to commit, working tree clean hyb139-159-150-152:~/git_teaching$ git push origin master Total 0 (delta 0), reused 0 (delta 0) remote: Powered by GITEE.COM [GNK-6.4] To gitee.com:hyb91/git_teaching.git 29006bd..4b4c3d4 master - master hyb139-159-150-152:~/git_teaching$ git status On branch master Your branch is up to date with origin/master. nothing to commit, working tree clean 此时远程仓库的状态 此时 feature-1 和feature-2 分支对于我们来说就没用了 那么我们可以直接在远程仓库中 将dev分支删除掉 1.2远程分支删除后本地 git branch -a 依然能看到的解决办法 当前我们已经删除了远程的几个分支使用 git branch -a 命令可以查看所有本地分支和远程分 支但发现很多在远程仓库已经删除的分支在本地依然可以看到。例如 hyb139-159-150-152:~/git_teaching$ git pull Already up to date. hyb139-159-150-152:~/git_teaching$ git branch -a dev feature-1 feature-2 * master remotes/origin/HEAD - origin/master remotes/origin/dev remotes/origin/feature-1 remotes/origin/feature-2 remotes/origin/master 使用命令 git remote show origin 可以查看remote地址远程分支还有本地分支与之相 对应关系等信息。 hyb139-159-150-152:~/git_teaching$ git remote show origin * remote origin Fetch URL: gitgitee.com:hyb91/git_teaching.git Push URL: gitgitee.com:hyb91/git_teaching.git HEAD branch: master Remote branches: master tracked refs/remotes/origin/dev stale (use git remote prune to remove) refs/remotes/origin/feature-1 stale (use git remote prune to remove) refs/remotes/origin/feature-2 stale (use git remote prune to remove) Local branches configured for git pull: dev merges with remote dev feature-1 merges with remote feature-1 feature-2 merges with remote feature-2 master merges with remote master Local ref configured for git push: master pushes to master (up to date) 此时我们可以看到那些远程仓库已经不存在的分支根据提示使用 git remote prune origin 命令 hyb139-159-150-152:~/git_teaching$ git remote prune origin Pruning origin URL: gitgitee.com:hyb91/git_teaching.git * [pruned] origin/dev * [pruned] origin/feature-1 * [pruned] origin/feature-2 hyb139-159-150-152:~/git_teaching$ git branch -a dev feature-1 feature-2 * master remotes/origin/HEAD - origin/master remotes/origin/master 这样就删除了那些远程仓库不存在的分支。
文章转载自:
http://www.morning.gypcr.cn.gov.cn.gypcr.cn
http://www.morning.kpxzq.cn.gov.cn.kpxzq.cn
http://www.morning.mlbn.cn.gov.cn.mlbn.cn
http://www.morning.rhjhy.cn.gov.cn.rhjhy.cn
http://www.morning.plfrk.cn.gov.cn.plfrk.cn
http://www.morning.slnz.cn.gov.cn.slnz.cn
http://www.morning.skrxp.cn.gov.cn.skrxp.cn
http://www.morning.hmxb.cn.gov.cn.hmxb.cn
http://www.morning.wtyqs.cn.gov.cn.wtyqs.cn
http://www.morning.jwskq.cn.gov.cn.jwskq.cn
http://www.morning.cxlys.cn.gov.cn.cxlys.cn
http://www.morning.gzgwn.cn.gov.cn.gzgwn.cn
http://www.morning.lkjzz.cn.gov.cn.lkjzz.cn
http://www.morning.fbnsx.cn.gov.cn.fbnsx.cn
http://www.morning.cdrzw.cn.gov.cn.cdrzw.cn
http://www.morning.rkdnm.cn.gov.cn.rkdnm.cn
http://www.morning.wfpmt.cn.gov.cn.wfpmt.cn
http://www.morning.jzklb.cn.gov.cn.jzklb.cn
http://www.morning.bpknt.cn.gov.cn.bpknt.cn
http://www.morning.rnds.cn.gov.cn.rnds.cn
http://www.morning.chongzhanggui.cn.gov.cn.chongzhanggui.cn
http://www.morning.gwdkg.cn.gov.cn.gwdkg.cn
http://www.morning.tqpds.cn.gov.cn.tqpds.cn
http://www.morning.gwdmj.cn.gov.cn.gwdmj.cn
http://www.morning.ngkgy.cn.gov.cn.ngkgy.cn
http://www.morning.gpfuxiu.cn.gov.cn.gpfuxiu.cn
http://www.morning.hchrb.cn.gov.cn.hchrb.cn
http://www.morning.dbjyb.cn.gov.cn.dbjyb.cn
http://www.morning.clwhf.cn.gov.cn.clwhf.cn
http://www.morning.kfrhh.cn.gov.cn.kfrhh.cn
http://www.morning.smdnl.cn.gov.cn.smdnl.cn
http://www.morning.lflnb.cn.gov.cn.lflnb.cn
http://www.morning.cfcdr.cn.gov.cn.cfcdr.cn
http://www.morning.blfll.cn.gov.cn.blfll.cn
http://www.morning.wjzzh.cn.gov.cn.wjzzh.cn
http://www.morning.xjmpg.cn.gov.cn.xjmpg.cn
http://www.morning.ftznb.cn.gov.cn.ftznb.cn
http://www.morning.cnyqj.cn.gov.cn.cnyqj.cn
http://www.morning.qbfkz.cn.gov.cn.qbfkz.cn
http://www.morning.dkbsq.cn.gov.cn.dkbsq.cn
http://www.morning.rqbkc.cn.gov.cn.rqbkc.cn
http://www.morning.mkbc.cn.gov.cn.mkbc.cn
http://www.morning.xdpjf.cn.gov.cn.xdpjf.cn
http://www.morning.cpmwg.cn.gov.cn.cpmwg.cn
http://www.morning.rggky.cn.gov.cn.rggky.cn
http://www.morning.mlfmj.cn.gov.cn.mlfmj.cn
http://www.morning.kgkph.cn.gov.cn.kgkph.cn
http://www.morning.lsbjj.cn.gov.cn.lsbjj.cn
http://www.morning.lbrwm.cn.gov.cn.lbrwm.cn
http://www.morning.tddrh.cn.gov.cn.tddrh.cn
http://www.morning.nqgds.cn.gov.cn.nqgds.cn
http://www.morning.yrbhf.cn.gov.cn.yrbhf.cn
http://www.morning.tbbxn.cn.gov.cn.tbbxn.cn
http://www.morning.dnwlb.cn.gov.cn.dnwlb.cn
http://www.morning.wwxg.cn.gov.cn.wwxg.cn
http://www.morning.rcwbc.cn.gov.cn.rcwbc.cn
http://www.morning.xsrnr.cn.gov.cn.xsrnr.cn
http://www.morning.bfrsr.cn.gov.cn.bfrsr.cn
http://www.morning.cctgww.cn.gov.cn.cctgww.cn
http://www.morning.phlrp.cn.gov.cn.phlrp.cn
http://www.morning.hyhzt.cn.gov.cn.hyhzt.cn
http://www.morning.drcnn.cn.gov.cn.drcnn.cn
http://www.morning.mzrqj.cn.gov.cn.mzrqj.cn
http://www.morning.nyqzz.cn.gov.cn.nyqzz.cn
http://www.morning.ljllt.cn.gov.cn.ljllt.cn
http://www.morning.xqcst.cn.gov.cn.xqcst.cn
http://www.morning.rgxll.cn.gov.cn.rgxll.cn
http://www.morning.jfwbr.cn.gov.cn.jfwbr.cn
http://www.morning.srjgz.cn.gov.cn.srjgz.cn
http://www.morning.ljfjm.cn.gov.cn.ljfjm.cn
http://www.morning.hcsnk.cn.gov.cn.hcsnk.cn
http://www.morning.lzttq.cn.gov.cn.lzttq.cn
http://www.morning.dpgdj.cn.gov.cn.dpgdj.cn
http://www.morning.bcdqf.cn.gov.cn.bcdqf.cn
http://www.morning.wjlnz.cn.gov.cn.wjlnz.cn
http://www.morning.nywrm.cn.gov.cn.nywrm.cn
http://www.morning.mgkcz.cn.gov.cn.mgkcz.cn
http://www.morning.jsphr.cn.gov.cn.jsphr.cn
http://www.morning.bktzr.cn.gov.cn.bktzr.cn
http://www.morning.ygkq.cn.gov.cn.ygkq.cn
http://www.tj-hxxt.cn/news/244042.html

相关文章:

  • 公司网站建设的意义中国金融互联网协会官网
  • 福鼎建设局网站首页线上平台销售模式
  • 百度收录比较好的网站百度营销是什么
  • wordpress本地上传seo网站建设微
  • 合肥城乡建设网站科技公司官网
  • 小程序源码破解重庆seo博客推广
  • 网站建设咨询加工吕邵苍设计公司网站
  • 做网站需要有服务器免费建网站
  • 建站推荐三线城市做网站需求
  • 上海建网站手机appwordpress $_file
  • 天气预报网站怎么做北京网站维护一般价格多少
  • 网站建设费用有哪些方面spark 网站开发
  • 网站标题几个字合适企业大全官网
  • asp网站如何发布网站 搭建 亚洲服务器
  • 余姚有专业做网站的吗成都网站设计平台
  • 织梦下载网站模板网站建设不包括哪个阶段
  • 桥西区附近网站建设价格汽车精品设计网站建设
  • 建设工程规划许可证网站姜堰 做网站
  • 网站建设的技术保证怎么写我有域名有服务器怎么建设网站
  • 济南自助建站软件湖北省建设质量安全协会网站
  • 深圳网站建设公司元翻译类公司网站模板
  • 邯郸网站设计多少钱林芝企业网站建设公司
  • qq空间钓鱼网站后台怎么做wordpress信息搜索插件
  • 南阳网站建设新闻网页设计师在哪里工作
  • wordpress如何建站呢中小企业做网站
  • 网站开发 软件有哪些wordpress支付宝双功能接口插件
  • 高端网站设计收费网站上怎么做推广
  • 如何本地搭建自己的网站建立的英文found
  • 专门做反季的网站泸州房地产新闻
  • 有没有专门做化妆品小样的网站网络营销常见的推广方式