Domanda

I found some scripts to reveal the largest files in a git pack file on a mac, but it is unclear to me if these will work on Windows. My gut is that they will not since it explicitly says run on a mac.

That said, it seems to be running...forever.

Questions:

  1. will the scripts here, work on windows
  2. if not, what will work?
  3. if not, what is different in the repo's on mac / windows
È stato utile?

Soluzione

An alternative to those scripts - if all you're trying to do is remove large files from the history of your Git repo - would be The BFG Repo-Cleaner. It's only requirement is the Java 6 runtime, so it's cross-platform. It's also very fast - for an example of this, you can watch this video:

http://www.youtube.com/watch?v=Ir4IHzPhJuI

In your case, you might want to run it with a command like:

$ bfg --strip-blobs-bigger-than 10M  my-repo.git

This removes all blobs bigger than 10MB, that aren't in your latest commit.

Full disclosure: I'm the author of the BFG Repo-Cleaner.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top