Skip to content

How to add a commit describing a git filter-repo --path-rename #553

Closed Answered by newren
gdlxn-ibm asked this question in Q&A
Discussion options

You must be logged in to vote

I'm afraid I'm not following this description is. git filter-repo --path-rename A:B goes through every commit, and for any that has a file named A will rename it to B. So, if you have 10,000 commits in your history, and 500 of them make modifications to file A, then --path-rename fixes up 500 commits. Do you want an additional 500 commits saying that you've renamed A -> B in the history?? Someone reading that would find that really odd.

If you don't want 500 commits but just want one...where do you put that one? Near the beginning of history? Near the current end of history? Why would someone look there to find it? And what's the purpose of the commit given that after you've rewritten his…

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