Skip to content

Instantly share code, notes, and snippets.

@bfoz
Created September 7, 2010 19:24
Show Gist options
  • Star 44 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save bfoz/568898 to your computer and use it in GitHub Desktop.
Save bfoz/568898 to your computer and use it in GitHub Desktop.
Force GIT_COMMITTER_DATE = GIT_AUTHOR_DATE
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
@carhartl
Copy link

Gimme exactly what I needed five

@schardev
Copy link

exactly what I needed six ;-)

@harshit-budhraja
Copy link

Absolutely what I needed seven ;-)

@Suyog7130
Copy link

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!

@schardev
Copy link

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