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

开了个网站用年份做名字好吗集团网站手机版

开了个网站用年份做名字好吗,集团网站手机版,搜索引擎优化方法总结,wordpress 无图插件1.3 Git 的三个阶段 由于远程代码库后续存在新的提交#xff0c;因此实操过程中的结果与书中并不完全一致。根据书中 HEAD 指向的 SHA-1#xff1a;34acc370b4d6ae53f051255680feaefaf7f7850d#xff0c;可通过以下命令切换到对应版本#xff0c;并新建一个 newdemo 分支来…1.3 Git 的三个阶段 由于远程代码库后续存在新的提交因此实操过程中的结果与书中并不完全一致。根据书中 HEAD 指向的 SHA-134acc370b4d6ae53f051255680feaefaf7f7850d可通过以下命令切换到对应版本并新建一个 newdemo 分支来避免后续版本的干扰 # Stay the same with the book in a new branch $ git checkout git reset --hard 13dcada077e446d3a05ea9cdbc8ecc261a94e42d git checkout -b newdemo # Check commit info in advance for use $ git cat-file -p HEAD | grep tree tree 34fa038544bcd9aed660c08320214bafff94150b $ git cat-file -p HEAD^{tree} | grep another-file 100644 blob b50f80ac4d0a36780f9c0636f43472962154a11a another-file.txt实战练习 # Repo initialization $ git clone https://github.com/PacktPublishing/Git-Version-Control-Cookbook-Second-Edition.git demo $ cd demo # Add new content to another-file.txt $ echo Another line another-file.txt # Check git status $ git status # Add modified file and check status again $ git add another-file.txt $ git status # When a file is moved to the staging area, the SHA-1 hash of the file is created and the blob object is written to Gits database. This happens every time a file is added, but if nothing changes for a file, it means that it is already stored in the database. At first, this might seem that the database will grow quickly, but this is not the case. Garbage collection kicks in at times, compressing, and cleaning up the database and keeping only the objects that are required. # Some more modification $ echo Whoops almost forgot this another-file.txt # check status $ git status # both Changes to be committed and Changes not staged for commit are observed due to the second update # add again to merge the status $ git add another-file.txt $ git status # Now, all the changes we have made to the file are ready to be committed, and we can record a commit $ git commit -m Another change to another file # Error: fatal: empty ident name (for zLAPTOP-QVS7NVNN.localdomain) not allowed # Config user name and email $ git config user.email john.doeexample.com $ git config user.name John Doe $ git commit -m Another change to another file [newdemo 9cfa61c] Another change to another file1 file changed, 2 insertions()此时再次查看 HEAD 信息可以发现根节点树 root tree 与 another-file.txt 的 SHA-1 都因为 commit 操作更新了 $ git cat-file -p HEAD | grep tree tree 162201200b5223d48ea8267940c8090b23cbfb60 # before: # tree 34fa038544bcd9aed660c08320214bafff94150b $ git cat-file -p HEAD^{tree} | grep another-file 100644 blob 35d31106c5d6fdb38c6b1a6fb43a90b183011a4b another-file.txt # before: # 100644 blob b50f80ac4d0a36780f9c0636f43472962154a11a another-file.txt然而文本文件 another-file.txt 在最后提交前添加到暂存区了两次如果每次 git add 命令都会产生 blob、tree 以及 commit 对象那么 Git 仓库中势必会有中间那次 add 操作的对象被一同计入 Git 数据库。查看该对象可以使用命令 git fsck $ git fsck --dangling Checking object directories: 100% (256/256), done. Checking objects: 100% (49/49), done. dangling blob ad46f2da274ed6c79a16577571a604d3281cd6d9进一步验证查到的对象 $ git cat-file -p ad46f2da274ed6c79a16577571a604d3281cd6d9 This is just another file Another line验证成功。 个人小结 由于源码库后续有新版本提交取消了之前的某个促销活动导致实际代码和书中不完全一致。好在 Git 可以直接切到变更前的版本才有了上面一系列实操验证内容。不得不说Git 确实很强大。 现在想想其实 Git 的用途远远不止源码版本管理日常生活中只要遇到切换多个历史版本的场景都可以用 Git 进行管理。前提是对 Git 的基本概念和命令行得相当熟悉才行。这恐怕也是 Git 难以大面积推广的一个重要原因。不过话说回来掌握了 Git 的知识后再去看其他行业涉及版本控制的一些场景基本也是降维打击的存在了。。。
http://www.w-s-a.com/news/232877/

相关文章:

  • vs网站开发教程昆山普立斯特做的有网站
  • 柳州网站seo网站swordpress 输出内容
  • 网站设计制作电话多少网站流量下降
  • 沈阳做网站推广的公司唐山哪家做网站好
  • 国外著名网站建设公司WordPress破解怎样主题修复
  • 网站建设济南云畅网络广州电力建设有限公司网站
  • 查看公司信息的网站思特奇是外包公司吗
  • 制作企业网站的目的啥都能看的浏览器
  • 做网站可以用哪些语言如何进行网站运营与规划
  • 做效果图网站有哪些电子商城网站制作数据库
  • 小刘网站建设wordpress调用php文件上传
  • 建设银行对账网站网络营销广告案例
  • 做网站开票是多少个点的票wordpress扫码提交数据库
  • 织梦网站改版需要怎么做企业网站备案管理系统
  • 大规模网站开发语言宁夏建设职业技术学院网站
  • 寻花问柳专注做一家男人爱的网站北京展台设计制作
  • 中卫网站设计做自己的卡盟网站
  • 广州网站推广自助做网站人家直接百度能搜到的
  • 电子商务网站建设目标及利益分析安徽建设厅网站施
  • 制作网站策划书网站建设公司的性质
  • 哪个网站可以做免费宣传简单的网页设计网站
  • 福州专业网站制作公司金湖建设局网站
  • 好的移动端网站模板下载兰州线上广告推广
  • 宁波高端建站深圳品牌营销策划机构
  • 权威网站优化价格建设厅科技中心网站首页
  • 保定模板建站软件腾讯云做淘客网站
  • 单位建设一个网站的费用正规刷手机单做任务网站
  • 北京定制网站价格开网店怎么卖到外国
  • 做网站 后端是谁来做的工程建设指挥部网站
  • wordpress建站 云打印昆明 网站设计