There is a useful tool for Mercurial called the " ConvertExtension ." It allows you to essentially rewrite the entirety of a repository's history. For example, if you have a file "foo.txt" in your root folder, but you want it to have been in the folder "root/bar/," you could use "hg convert" to change history to make it appear that it had always been in the "/bar/" folder.
Does an equivalent tool exist for git?
git filter-branch
是等效的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.