* deleting / adding files throughout the repository
@ 2009-06-08 17:25 Alex K
2009-06-08 22:55 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Alex K @ 2009-06-08 17:25 UTC (permalink / raw)
To: git
Hello,
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?
Thank you,
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: deleting / adding files throughout the repository
2009-06-08 17:25 deleting / adding files throughout the repository Alex K
@ 2009-06-08 22:55 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2009-06-08 22:55 UTC (permalink / raw)
To: Alex K; +Cc: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-08 22:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08 17:25 deleting / adding files throughout the repository Alex K
2009-06-08 22:55 ` Jeff King
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).