Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Force GIT_COMMITTER_DATE = GIT_AUTHOR_DATE
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
@infrastation

This comment has been minimized.

Copy link

@infrastation infrastation commented Sep 1, 2014

exactly what I needed

@Ladicek

This comment has been minimized.

Copy link

@Ladicek Ladicek commented Oct 11, 2014

Exactly what I needed too :-)

@Arnie97

This comment has been minimized.

Copy link

@Arnie97 Arnie97 commented Feb 17, 2015

exactly what I needed three ;-)

@kystn

This comment has been minimized.

Copy link

@kystn kystn commented Aug 29, 2016

exactly what I needed four ;-)

@carhartl

This comment has been minimized.

Copy link

@carhartl carhartl commented Apr 25, 2018

Gimme exactly what I needed five

@saurabhchardereal

This comment has been minimized.

Copy link

@saurabhchardereal saurabhchardereal commented Mar 18, 2020

exactly what I needed six ;-)

@harshit-budhraja

This comment has been minimized.

Copy link

@harshit-budhraja harshit-budhraja commented May 29, 2020

Absolutely what I needed seven ;-)

@Suyog7130

This comment has been minimized.

Copy link

@Suyog7130 Suyog7130 commented May 28, 2021

Just the thing I wanted eight & nine! 😁

@Suyog7130

This comment has been minimized.

Copy link

@Suyog7130 Suyog7130 commented Jun 11, 2021

Since git 1.6.3 git rebase has --committer-date-is-author-date for this purpose.

git rebase --committer-date-is-author-date

Use git rebase HEAD~x --committer-date-is-author-date to apply this to x commits available in the HEAD.

@bfoz

This comment has been minimized.

Copy link
Owner Author

@bfoz bfoz commented Jun 11, 2021

Since git 1.6.3 git rebase has --committer-date-is-author-date for this purpose.

git rebase --committer-date-is-author-date

Use git rebase HEAD~x --committer-date-is-author-date to apply this to x commits available in the HEAD.

Thanks for finding that!

@saurabhchardereal

This comment has been minimized.

Copy link

@saurabhchardereal saurabhchardereal commented Jun 12, 2021

Since git 1.6.3 git rebase has --committer-date-is-author-date for this purpose.

git rebase --committer-date-is-author-date

Use git rebase HEAD~x --committer-date-is-author-date to apply this to x commits available in the HEAD.

Exactly what I needed Max Pro!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment