Skip to content

preserve files in master's latest commit #536

Closed Answered by newren
guynaa asked this question in Q&A
Discussion options

You must be logged in to vote

You can copy the files elsewhere, then after running git filter-repo copy the files back in and even amend the commit if necessary.

You can also implement this in a contrib/filter-repo-demos script of your own; the bfg-ish has some code that may be of interest if you really want to go down that path (look for the revert_tree_changes() function and --preserve-ref-tips). But no, nothing built in to git-filter-repo, and there are no plans to change that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by newren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants