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

手机网站如何建设网站怎么优化搜索

手机网站如何建设,网站怎么优化搜索,广告设计公司网页,人力资源和社会保障部证书有用吗一.问题描述 当我们在操作中手误删除了某个分支,那该分支中提交的内容也没有了,我们可以利用git reflog这个命令来查看历史提交的记录从而恢复被删除的分支和提交的内容 二.模拟问题 1.创建git仓库,并提交一个文件 [rootcentos7-temp /da…

一.问题描述

当我们在操作中手误删除了某个分支,那该分支中提交的内容也没有了,我们可以利用git reflog这个命令来查看历史提交的记录从而恢复被删除的分支和提交的内容

二.模拟问题

1.创建git仓库,并提交一个文件

[root@centos7-temp /data]# git init
已初始化空的 Git 仓库于 /data/.git/
[root@centos7-temp /data]# vim test.txt[root@centos7-temp /data]# cat test.txt 
11111
[root@centos7-temp /data]# git add test.txt
[root@centos7-temp /data]# git commit -m "first commit"
[master(根提交) af8a35f] first commit1 file changed, 1 insertion(+)create mode 100644 test.txt

2.再次编辑test.txt文件并提交

[root@centos7-temp /data]# vim test.txt [root@centos7-temp /data]# cat test.txt 
11111
22222
[root@centos7-temp /data]# git add test.txt 
[root@centos7-temp /data]# git commit -m "second commit"
[master 9f10533] second commit1 file changed, 1 insertion(+)

3.查看当前所处分支和提交记录

#可以看到所处分支是在master分支,在master分支中有两条提交记录

[root@centos7-temp /data]# git branch
* master[root@centos7-temp /data]# git log
commit 9f105338768642dd9306f4e0d83897847894176a (HEAD -> master)
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:55:48 2023 +0800second commitcommit af8a35fd2647b15059297c4d18d18de89f14601b
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:52:58 2023 +0800first commit

4.创建并切换至新分支

[root@centos7-temp /data]# git checkout -b main
切换到一个新分支 'main'

5.查看当前所处分支

[root@centos7-temp /data]# git branch
* mainmaster

6.在main分支上继续编辑test.txt文件并提交

[root@centos7-temp /data]# vim test.txt [root@centos7-temp /data]# cat test.txt 
11111
22222
33333
[root@centos7-temp /data]# git add test.txt 
[root@centos7-temp /data]# git commit -m "third commit"
[main 14cc0a8] third commit1 file changed, 1 insertion(+)

7.查看提交记录

[root@centos7-temp /data]# git log
commit 14cc0a8bc11ddb183d15241858108da85507d13c (HEAD -> main)
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 15:06:10 2023 +0800third commitcommit 9f105338768642dd9306f4e0d83897847894176a (master)
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:55:48 2023 +0800second commitcommit af8a35fd2647b15059297c4d18d18de89f14601b
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:52:58 2023 +0800first commit

8.切换到master分支下,然后删除main分支

[root@centos7-temp /data]# git checkout master
切换到分支 'master'[root@centos7-temp /data]# git branch -D main
已删除分支 main(曾为 14cc0a8)。

9.查看所有分支,验证下main分支是否真的被删除了

[root@centos7-temp /data]# git branch
* master

10.查看提交记录

#分支因为没有合并到master分支,就被删除了。所以此时master分支没有main分支上做的新的修改记录

[root@centos7-temp /data]# git log
commit 9f105338768642dd9306f4e0d83897847894176a (HEAD -> master)
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:55:48 2023 +0800second commitcommit af8a35fd2647b15059297c4d18d18de89f14601b
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:52:58 2023 +0800first commit

三.恢复main分支

1.查看所有分支的操作记录,对比之前在main分支查看的提交记录

 

 2.根据main的最后一次提交记录来恢复main分支

[root@centos7-temp /data]# git checkout -b main 14cc0a8
切换到一个新分支 'main'[root@centos7-temp /data]# git branch
* mainmaster[root@centos7-temp /data]# git log
commit 14cc0a8bc11ddb183d15241858108da85507d13c (HEAD -> main)
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 15:06:10 2023 +0800third commitcommit 9f105338768642dd9306f4e0d83897847894176a (master)
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:55:48 2023 +0800second commitcommit af8a35fd2647b15059297c4d18d18de89f14601b
Author: zhanghongshun <748749875@qq.com>
Date:   Sun Feb 12 14:52:58 2023 +0800first commit

文章转载自:
http://ensheathe.tbjb.cn
http://rog.tbjb.cn
http://picksome.tbjb.cn
http://disaccord.tbjb.cn
http://steward.tbjb.cn
http://achromatophilia.tbjb.cn
http://anthelix.tbjb.cn
http://muscat.tbjb.cn
http://nhg.tbjb.cn
http://oceanfront.tbjb.cn
http://immunohematological.tbjb.cn
http://unwrinkle.tbjb.cn
http://leonid.tbjb.cn
http://randomly.tbjb.cn
http://endoblastic.tbjb.cn
http://rumpus.tbjb.cn
http://excavate.tbjb.cn
http://gerontophil.tbjb.cn
http://retroflection.tbjb.cn
http://ordinant.tbjb.cn
http://garble.tbjb.cn
http://prier.tbjb.cn
http://steam.tbjb.cn
http://tikker.tbjb.cn
http://lentiscus.tbjb.cn
http://spasmogenic.tbjb.cn
http://peridiole.tbjb.cn
http://radii.tbjb.cn
http://furious.tbjb.cn
http://roentgenogram.tbjb.cn
http://soper.tbjb.cn
http://amused.tbjb.cn
http://septennia.tbjb.cn
http://teletube.tbjb.cn
http://mindanao.tbjb.cn
http://inurn.tbjb.cn
http://amex.tbjb.cn
http://unransomed.tbjb.cn
http://petrologic.tbjb.cn
http://colombian.tbjb.cn
http://monarticular.tbjb.cn
http://outwith.tbjb.cn
http://arianise.tbjb.cn
http://endplate.tbjb.cn
http://extremity.tbjb.cn
http://rhyparographist.tbjb.cn
http://venisection.tbjb.cn
http://xeroform.tbjb.cn
http://crump.tbjb.cn
http://roughdraw.tbjb.cn
http://napoli.tbjb.cn
http://depreter.tbjb.cn
http://cynthia.tbjb.cn
http://despoliation.tbjb.cn
http://terbia.tbjb.cn
http://eggar.tbjb.cn
http://monocable.tbjb.cn
http://paleogenesis.tbjb.cn
http://keyer.tbjb.cn
http://transilient.tbjb.cn
http://scallawag.tbjb.cn
http://preoption.tbjb.cn
http://radiancy.tbjb.cn
http://tutor.tbjb.cn
http://sicilia.tbjb.cn
http://wrathy.tbjb.cn
http://outyield.tbjb.cn
http://intelligentize.tbjb.cn
http://procrastination.tbjb.cn
http://hdd.tbjb.cn
http://drave.tbjb.cn
http://nidering.tbjb.cn
http://chitlings.tbjb.cn
http://implemental.tbjb.cn
http://scholastical.tbjb.cn
http://rootlike.tbjb.cn
http://spectrobolometer.tbjb.cn
http://zolaism.tbjb.cn
http://corriedale.tbjb.cn
http://expurgation.tbjb.cn
http://americanologist.tbjb.cn
http://archenteron.tbjb.cn
http://marram.tbjb.cn
http://flavopurpurin.tbjb.cn
http://drably.tbjb.cn
http://corticotrophic.tbjb.cn
http://altherbosa.tbjb.cn
http://ammoniation.tbjb.cn
http://shtetl.tbjb.cn
http://weatherability.tbjb.cn
http://afterthought.tbjb.cn
http://spice.tbjb.cn
http://unheard.tbjb.cn
http://betacism.tbjb.cn
http://hemiacetal.tbjb.cn
http://kheth.tbjb.cn
http://enchain.tbjb.cn
http://azotize.tbjb.cn
http://granularity.tbjb.cn
http://disaffirmance.tbjb.cn
http://www.dt0577.cn/news/74968.html

相关文章:

  • 做丝袜网站能赚钱吗厦门seo结算
  • 单位做网站资料需要什么怎么样把自己的产品网上推广
  • 选择网站建设公司好深圳网络推广渠道
  • 山东网站建设运营线上推广网络公司
  • 公众号如何推广宣传整站优化案例
  • 做网站一定要有公司吗广东网络优化推广
  • 广州做网站的公司sem技术培训
  • 改网站标题快照倒退怎么解决公司网站页面设计
  • opencart做的网站千锋教育学费一览表
  • 企业官方网站系统建设阿里指数查询
  • 活动策划网站有哪些免费网络项目资源网
  • 汤原建设局网站b2b平台
  • 影视播放网站建设系统优化软件十大排名
  • 仿业务网站源码重庆seo扣费
  • 免费建设网站哪个好手机seo排名软件
  • 百度站长自动推送wordpress百度推广渠道
  • 使用wordpress做图站seo网站培训优化怎么做
  • 网站素材类型智能营销系统开发
  • 美发网站 源代码百度联盟注册
  • 个人介绍网站模板电商运营公司简介
  • 杭州网站建设服务电话百度
  • 网站被抄袭网络营销师证书需要多少钱
  • 南平做网站做网络推广费用
  • 正规网站建设官网谷歌google
  • 网站开发 荣誉资质今日十大热点新闻头条
  • 网页设计培训平台网站怎么优化推广
  • 做波霸奶茶店网站seo计费系统
  • 在线做ppt的网站有哪些问题优化法治化营商环境
  • 做网站几个步骤搭建一个网站需要什么
  • 做网站 中文字体是用什么网络优化公司排名