filter history to clean git repo from submodules

How can you remove references to submodules in a git repo which no longer uses submodules (merged them) so that bazaar can import it?

bzr: ERROR: The repository you are fetching from contains submodules, which are not yet supported.

  • Does git have an equivalent for the bazaar automv plugin?
  • Bazaar + CruiseControl.Net
  • examining history of deleted file
  • Git: Merge in branch without polluting the Master history
  • Using git and subversion code within a Bazaar project
  • Should I look at version control systems beyond Subversion?
  • It should be possible according to jelmer: https://bugs.launchpad.net/bzr/+bug/402814/comments/43

    There is no way to tell the import system to just ignore history. You could provide a custom repository that has the submodules filtered out of the history or filter them out of your history on github.

  • How to only push a specific tag to remote?
  • Commit file to github and then unstage because it contains sensitive data
  • git hook bash does not work
  • Git merging issue
  • Why would my production site and my dev site have different migrations?
  • Git ignore not ignoring one file, but all files
  • 2 Solutions collect form web for “filter history to clean git repo from submodules”

    You can’t, see https://answers.launchpad.net/launchpad/+question/88128/ for an explanation of why. It looks as if they’re trying to get bzr to handle this but aren’t there yet.

    Importing a repository with submodules is not yet supported. The required support for dealing with submodules is present in bzr-git, but the feature that submodules are mapped to, which is called “nested trees” is not yet finished.

    Git Baby is a git and github fan, let's start git clone.