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
lost commit history during move to new repo #48
Comments
I'm a strong advocate of retaining git history when moving or splitting repos. I had started on a tool to automatically do this for the Helm's upcoming Distributed Search Hub, but haven't completed that as a full project yet. It likely wouldn't help this project anyway, since it would take some manual work to get it back to the current state but with full history at the start. It may be slightly tricky to splice history in at the first or second commit, but you should be able to do that, resolve conflicts, then replay the newer commits on top. If you want to create a test branch and want another set of eyes on it let me know. I'm not sure about the DCO question on original commits, but that may be something worth looking into. |
@paulczar We'll make update to contributors list to acknowledge the contribution by community, and investigate how we can restore the commit histories later. |
Wicked! thanks for the response @reasonerjt ! |
OK I spliced it back in. I can't open a PR because I changed the initial commit (added history from before chart was deleted from https://github.com/goharbor/harbor), then replayed all of this repo's commits on top. But you can - if you want to - take the work I did in my branch (https://github.com/scottrigby/harbor-helm/tree/recover-history), and force push it to this repo. You can also redo this yourself (the only file that requires a manual resolution is My steps
|
Woah @scottrigby that's some sweet git magic! thanks so much for doing that. |
Thanks a lot |
I feel like the longer this is left as is the harder it will be to rectify. It would be a shame to not acknowledge the work of the original contributors and might prevent this helm chart from achieving CNCF conformance. |
@paulczar actually we tried couple of times to restore the commit history but failed at various errors. How about we list the lost commit history in a section in readme.md and acknowledge the great work of the contributors? |
This can be kind of a pain (but only the first time, after that it's back to normal), but I'm happy to help with this again, just let me know when you want to and we can get it done. |
Update: we're following up by email |
OK, I just updated https://github.com/scottrigby/harbor-helm/tree/recover-history. It should be ready to go. Before you force-push to
|
@paulczar The lost commits are recovered. |
Amazing job folks! thanks so much everyone, especially @scottrigby ! |
@scottrigby Thanks for documenting the steps you followed to recover history. It serves as a useful example.
For anyone who may be curious: The command you want is |
Hi,
I just found the new repo for harbor's helm repo and noticed the commit history has all been squashed out. It would be really nice to have used
git filter-branch --prune-empty --subdirectory-filter FOLDER-NAME BRANCH-NAME
to split it out while keeping the commit history.Also I believe this also makes the DCO for the original commit somewhat contentious as it does not list all contributors of code to the commit.
There is probably not much that can be done, its possible we could go back to the original repo and git filter-branch it and then re-apply the commits in here. I see there's a [incomplete] list of contributors in a contributors file so that at least helps acknowledge the hard work done by the various contributors.
The text was updated successfully, but these errors were encountered: