在重新设计git分支时更改时间戳 [英] Change timestamps while rebasing git branch

查看:118
本文介绍了在重新设计git分支时更改时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经重组了分支中的提交,然后才会公开,导致提交的时间戳混在一起。我宁愿让他们都成为今天,只需要几秒钟。



显然这些时间戳也不会正确,但是因为这是事情发生的时间公共场合我比较喜欢混合了历史,时间方面。

那么如何让git在重新绑定时创建新的时间戳?

解决方案

  git rebase --ignore-date 


I have reorganized the commits in a branch before it is going to be made public causing the timestamps of the commits to be in an mixed up order. I would rather have them be all be today with only seconds in between.

Obviously these time stamps won't be correct either, but since this is the time when things go public I prefer that over a mixed up history, time-wise.

So how do I tell git to create new timestamps while rebasing?

解决方案

git rebase --ignore-date

这篇关于在重新设计git分支时更改时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆