Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I did something similar once where I had to split one repository which I merged accidentally into two distinct ones. Interesting usage pattern though. :) Commented Feb 12, 2009 at 15:04
  • 1
    Would this be the same as just: rm -f .git; git init; git add . ; git commit -m "Trash the history." Commented Feb 12, 2009 at 22:21
  • 1
    Yes, it is the same only in my mp3 case. But sometimes you don't want to touch your branches and tags (no space reduction in public repositories) but you want to speed up a "git clone/fetch/pull" of only a branch (less space for dedicated-to-that-branch repositories). Commented Feb 13, 2009 at 12:50