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
Copy link

infrastation commented Sep 1, 2014

exactly what I needed

@Ladicek
Copy link

Ladicek commented Oct 11, 2014

Exactly what I needed too :-)

@Arnie97
Copy link

Arnie97 commented Feb 17, 2015

exactly what I needed three ;-)

@kystn
Copy link

kystn commented Aug 29, 2016

exactly what I needed four ;-)

@carhartl
Copy link

carhartl commented Apr 25, 2018

Gimme exactly what I needed five

@saurabhchardereal
Copy link

saurabhchardereal commented Mar 18, 2020

exactly what I needed six ;-)

@harshit-budhraja
Copy link

harshit-budhraja commented May 29, 2020

Absolutely what I needed seven ;-)

@Suyog7130
Copy link

Suyog7130 commented May 28, 2021

Just the thing I wanted eight & nine! 😁

@Suyog7130
Copy link

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
Copy link
Author

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
Copy link

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