Re: deleting / adding files throughout the repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 08, 2009 at 06:25:00PM +0100, Alex K wrote:

> Suppose I made a mistake in my repository. There is a file that should
> never have been there. How do I delete this file from the entire
> repository history? How do I add a file throughout the entire
> repository history as if this later file had always been there?

Use "git filter-branch". The examples section of "git help
filter-branch" does the first part of what you're asking (and the second
part is fairly easy to extrapolate).

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]