* how to delete from history some files, and commits with them?
@ 2010-07-14 15:46 Tikhon Tarnavski
2010-07-14 16:15 ` Jonathan Nieder
0 siblings, 1 reply; 3+ messages in thread
From: Tikhon Tarnavski @ 2010-07-14 15:46 UTC (permalink / raw)
To: git
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to delete from history some files, and commits with them?
2010-07-14 15:46 how to delete from history some files, and commits with them? Tikhon Tarnavski
@ 2010-07-14 16:15 ` Jonathan Nieder
2010-07-14 16:58 ` Тихон Тарнавский
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Nieder @ 2010-07-14 16:15 UTC (permalink / raw)
To: Tikhon Tarnavski; +Cc: git
Tikhon Tarnavski wrote:
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to delete from history some files, and commits with them?
2010-07-14 16:15 ` Jonathan Nieder
@ 2010-07-14 16:58 ` Тихон Тарнавский
0 siblings, 0 replies; 3+ messages in thread
From: Тихон Тарнавский @ 2010-07-14 16:58 UTC (permalink / raw)
To: Jonathan Nieder; +Cc: git
On Wed, 14.07.2010 11:15:08 , Jonathan Nieder wrote:
> Tikhon Tarnavski wrote:
>
> > 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.
--
С уважением,
Тихон Тарнавский.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-14 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 15:46 how to delete from history some files, and commits with them? Tikhon Tarnavski
2010-07-14 16:15 ` Jonathan Nieder
2010-07-14 16:58 ` Тихон Тарнавский
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).