博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
上一个时间段的Git Checkout
阅读量:2515 次
发布时间:2019-05-11

本文共 767 字,大约阅读时间需要 2 分钟。

In the past I've blogged about as well as , but one frequent usage of git and dates is checking out a commit at a given time in the past. For example, I often say "Weird, this feature was working a month ago" or "We removed that UI two months ago, how did it look again?". I don't care about the branch previous to the change, I just want to go back a given timeframe and see something.

过去,我写过关于以及博客,但是git和date的一种常见用法是在过去的给定时间签出一次提交。 例如,我经常说“很奇怪,该功能一个月前就可以使用”或“我们两个月前就删除了该UI,它又看起来如何?”。 我不在乎更改之前的分支,我只想返回给定的时间范围并看到一些东西。

The following git command allows you checkout the commit closest to the given date and time:

以下git命令允许您检出最接近给定日期和时间的提交:

git checkout 'master@{2018-09-01 01:00:00}'

This command is incredibly useful -- I use it almost daily!

该命令非常有用-我几乎每天都在使用它!

翻译自:

转载地址:http://jcpwd.baihongyu.com/

你可能感兴趣的文章
003.第一个动画:绘制直线
查看>>
ng-深度学习-课程笔记-2: 神经网络中的逻辑回归(Week2)
查看>>
正则表达式的搜索和替换
查看>>
个人项目:WC
查看>>
地鼠的困境SSL1333 最大匹配
查看>>
flume+elasticsearch+kibana遇到的坑
查看>>
【MM系列】在SAP里查看数据的方法
查看>>
C#——winform
查看>>
CSS3 transform制作的漂亮的滚动式导航
查看>>
《小强升职记——时间管理故事书》读书笔记
查看>>
Alpha 冲刺(3/10)
查看>>
Kaldi中的Chain模型
查看>>
spring中的ResourceBundleMessageSource使用和测试示例
查看>>
css规范 - bem
查看>>
电梯调度程序的UI设计
查看>>
转自 zera php中extends和implements的区别
查看>>
Array.of使用实例
查看>>
【Luogu】P2498拯救小云公主(spfa)
查看>>
如何获取网站icon
查看>>
几种排序写法
查看>>