{"thread":{"id":"24394","subject":"how to delete from history some files, and commits with them?","startedAt":"2010-07-14T15:46:48Z","lastAt":"2010-07-14T16:58:31Z","messageCount":3,"participants":["Tikhon Tarnavski","Jonathan Nieder","Тихон Тарнавский"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"145550","messageId":"loom.20100714T170722-272@post.gmane.org","threadId":"24394","inReplyTo":null,"subject":"how to delete from history some files, and commits with them?","fromName":"Tikhon Tarnavski","fromEmail":"t.t@unixforum.org","sentAt":"2010-07-14T15:46:48Z","receivedAt":"2010-07-14T15:46:48Z","isPatch":false,"sender":{"key":"t.t@unixforum.org","avatar":null},"body":"Hello.\n\nI'm using git for several small\nprojects, and now one of those pgojects\nhave to be divided into two independent\nparts. So I want to divide git history\nrespectively. I can create two clones\nand run filter-branch in both to delete\nfiles. But I can't find how I may\ndelete empty commits after that.\nNaturally, I'd prefer to do all process\nautomatically: removing unnecessary\nfiles and deleting empty commits\nwithout searching to its' hashes.\n\nCan you suggest any solution?\n"},{"id":"145551","messageId":"20100714161508.GA2330@burratino","threadId":"24394","inReplyTo":"loom.20100714T170722-272@post.gmane.org","subject":"Re: how to delete from history some files, and commits with them?","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-07-14T16:15:08Z","receivedAt":"2010-07-14T16:15:08Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Tikhon Tarnavski wrote:\n\n>               I can create two clones\n> and run filter-branch in both to delete\n> files. But I can't find how I may\n> delete empty commits after that.\n\nMaybe --prune-empty can help.\n"},{"id":"145562","messageId":"20100714165830.GA13717@Nokia-N810-43-7","threadId":"24394","inReplyTo":"20100714161508.GA2330@burratino","subject":"Re: how to delete from history some files, and commits with them?","fromName":"Тихон Тарнавский","fromEmail":"t.t@unixforum.org","sentAt":"2010-07-14T16:58:31Z","receivedAt":"2010-07-14T16:58:31Z","isPatch":false,"sender":{"key":"t.t@unixforum.org","avatar":null},"body":"On Wed, 14.07.2010 11:15:08 , Jonathan Nieder wrote:\n> Tikhon Tarnavski wrote:\n> \n> >               I can create two clones\n> > and run filter-branch in both to delete\n> > files. But I can't find how I may\n> > delete empty commits after that.\n> \n> Maybe --prune-empty can help.\n\nI was forced to use git 1.5.6 (by technical reasons) where this option is\nnot available (and I didn't know about it). Now I can switch to 1.7 so I'll\ntry it soon. Thank you very much.\n\n-- \nС уважением,\nТихон Тарнавский.\n"}]}