【发布时间】:2013-12-27 13:04:39
【问题描述】:
如何使用“3 天前”、“12 个月前”等时间表示法检查 git 存储库?
注意this related question 只关注本地仓库,但我想检查远程仓库。
【问题讨论】:
标签: git date git-checkout
如何使用“3 天前”、“12 个月前”等时间表示法检查 git 存储库?
注意this related question 只关注本地仓库,但我想检查远程仓库。
【问题讨论】:
标签: git date git-checkout
git checkout `git rev-list -n 1 --before="3 days ago" master`
【讨论】:
3 days ago 符号。感谢您指出@hvd。