-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change committed date value for commits from dedicated date? #607
Comments
Are the other commits whose hashes are changed ones which have a parent (or further back ancestor) which had a commit timestamp after 1726352100? |
no. And that's why I ask you. I see all commits changed and duplicated from my initial project commit which is more than 4 years old. |
Okay, that removes the most likely explanation. There are some others. Does your history have any of these?:
You can probably check all of the above by running An alternative way to check what is happening is to find the earliest commit in your history that has a different hash before and after the rewrite. Then once you've found ${OLD_HASH} and ${NEW_HASH} go and run Anyway, if it is due ot canonicalization of history as it rewrites, then it's fundamental to the tool. If that's the case, your only option to avoid having older history rewrite it is to have git-filter-repo not process those parts of history you don't want it to rewrite. You can do that with the |
No response; I'll assume my previous comment answered your questions. Let me know if that's not the case, and if so, what you found from the investigation suggestions I made |
Looks like, that no changes appeared. And I don't see that any of commits are not the same as my remote
|
Can you verify that by comparing the output of Anyway, if the fast-export piped to fast-import didn't give you different hashes, then you'll need to use the other thing I suggested to find out why git-filter-repo changed the commits, namely:
|
Generally all refs of refs/heads from git ls-remote are in git show-ref output What does it mean ${OLD_HASH} and ${NEW_HASH} in your example? I don't have this environment variables. |
Yes, but do the hashes from
They were place holders for you to find. You said that when you ran git-filter-repo that it changed commits older than you expected. I wanted you to find the first commit filter-repo changed, which would be ${NEW_HASH}. You also would also need another clone of that repo where you hadn't run git-filter-repo yet, and find the hash of the corresponding pre-rewrite commit. That would be ${OLD_HASH}. |
I want to do something like this
But when I run it, it changes hashes of commits before 1726352100 too. How to prevent this and change just commits after 1726352100 date?
Also I would like to not delete all remote repositories after changes.
The text was updated successfully, but these errors were encountered: