how to delete from history some files, and commits with them?
Hello.
I'm using git for several small projects, and now one of those pgojects have to be divided into two independent parts. So I want to divide git history respectively. I can create two clones and run filter-branch in both to delete files. But I can't find how I may delete empty commits after that. Naturally, I'd prefer to do all process
automatically: removing unnecessary files and deleting empty commits without searching to its' hashes.
Can you suggest any solution?
Quoted 4 lines · Tikhon Tarnavski
I can create two clones
and run filter-branch in both to delete
files. But I can't find how I may
delete empty commits after that.
Maybe --prune-empty can help.
Quoted 8 lines · Jonathan Nieder
Quoted 4 lines · Tikhon Tarnavski
I can create two clones
and run filter-branch in both to delete
files. But I can't find how I may
delete empty commits after that.Maybe --prune-empty can help.
I was forced to use git 1.5.6 (by technical reasons) where this option is not available (and I didn't know about it). Now I can switch to 1.7 so I'll try it soon. Thank you very much.
Signature · 2 lines
С уважением, Тихон Тарнавский.