git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git filter-branch re-write history over a range of commits did notwork
@ 2019-05-27  8:01 LU Chuck
  2019-05-27 18:21 ` Johannes Sixt
  0 siblings, 1 reply; 12+ messages in thread
From: LU Chuck @ 2019-05-27  8:01 UTC (permalink / raw)
  To: git@vger.kernel.org; +Cc: chuck.lu@qq.com

Hi team,

    The issue comes from https://github.com/git-for-windows/git/issues/2206.

    I want to re-write history by filter-branch command over a range of commits, but the command did not work.
    I have referred to the following three documentation about how to use git filter-branch:
    https://stackoverflow.com/questions/15250070/running-filter-branch-over-a-range-of-commits
    https://stackoverflow.com/questions/28536980/git-change-commit-date-to-author-date
    https://git-scm.com/docs/git-filter-branch

    You can reproduce the problem by the following steps
    1. clone the repository https://github.com/chucklu/LeetCode/
    2. checkout to the temp branch
    3. run the command git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"' ... 67d9d9..f70bf4
    4. You will got the info "Found nothing to rewrite"
 
    However, it was supposed to overwrite the history from commit 9c1580 to commit f70bf4, make the commit date same as date.
    I am not sure if I am using the filter-branch correctly, or if there is a bug in git?

    Anyone can help me? Thanks in advance.

Chuck Lu
Regards

^ permalink raw reply	[flat|nested] 12+ messages in thread
* git filter-branch re-write history over a range of commits did notwork
@ 2019-05-27  8:11 LU Chuck
  0 siblings, 0 replies; 12+ messages in thread
From: LU Chuck @ 2019-05-27  8:11 UTC (permalink / raw)
  To: git@vger.kernel.org; +Cc: chuck.lu@qq.com

Hi team,

    The issue comes from https://github.com/git-for-windows/git/issues/2206.

 

    I want to re-write history by filter-branch command over a range of commits, but the command did not work.

    I have referred to the following three documentation about how to use git filter-branch:

    https://stackoverflow.com/questions/15250070/running-filter-branch-over-a-range-of-commits

    https://stackoverflow.com/questions/28536980/git-change-commit-date-to-author-date

    https://git-scm.com/docs/git-filter-branch

 

    You can reproduce the problem by the following steps

    1. clone the repository https://github.com/chucklu/LeetCode/

    2. checkout to the temp branch

    3. run the command git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"' ... 67d9d9..f70bf4

    4. You will got the info "Found nothing to rewrite"

 

    However, it was supposed to overwrite the history from commit 9c1580 to commit f70bf4, make the commit date same as date.

    I am not sure if I am using the filter-branch correctly, or if there is a bug in git?

 

   Anyone can help me? Thanks in advance.

 

Chuck Lu

Regards

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-05-29  5:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27  8:01 git filter-branch re-write history over a range of commits did notwork LU Chuck
2019-05-27 18:21 ` Johannes Sixt
2019-05-27 20:22   ` Philip Oakley
2019-05-28  5:42     ` LU Chuck
2019-05-28  6:23       ` Johannes Sixt
2019-05-28  7:10         ` LU Chuck
2019-05-28  9:33           ` Philip Oakley
2019-05-28  9:53             ` LU Chuck
2019-05-28  9:57             ` Johannes Schindelin
2019-05-28  9:59   ` LU Chuck
2019-05-29  5:15   ` LU Chuck
  -- strict thread matches above, loose matches on Subject: below --
2019-05-27  8:11 LU Chuck

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).