首页 > 其他 > 详细

git修改commiter date

时间:2019-05-25 11:26:29      阅读:221      评论:0      收藏:0      [点我收藏+]

GIT: change commit date to author date

Short Answer:

git filter-branch --env-filter ‘export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"‘

Explanation:

filter-branch lets you rewrite your git history. It can apply transformations to each commit or filter out commits based on certain criteria. See git filter-branch --help for a comprehensive description and usage instructions.

--env-filter allows you to set the environment variables that are present during the creation of the new history. It is evaluated for each commit separately.

 

git修改commiter date

原文:https://www.cnblogs.com/chucklu/p/10921684.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!