2017-06-14 5 views
2

Ich versuche, ein vorhandenes Git-Repo zu konvertieren, um git lfs zu verwenden. Ich verfolge Atlassian's recipe, das BFG-Tool hier: https://rtyley.github.io/bfg-repo-cleaner/Ich kann Git repo nicht konvertieren, um große Dateiunterstützung (lfs) über das bfg-Tool zu verwenden

Das Problem ist, dass, wenn ich den vorgeschlagenen Befehl die tatsächliche Umsetzung zu tun, ist es fast sofort ohne eigentliche Arbeit endet getan:

C:\src> java -jar bfg-1.12.15.jar --convert-to-git-lfs '*.{msi,7z,gz,zip,bin,exe,psd,pdf}' --no-blob-protection ent.git` 

Using repo : C:\\src\\ent.git 

Found 0 objects to protect 
Found 35 tag-pointing refs : refs/tags/4.2/4.2.0, refs/tags/4.2/4.2.1, refs/tags/4.2/4.2.2, ... 
Found 145 commit-pointing refs : HEAD, refs/heads/ESP-1652-filetransformer-throws-system.invalidoperationexception, refs/heads/archive/cmdev, ... 

Protected commits 
----------------- 

You're not protecting any commits, which means the BFG will modify the contents of even *current* commits. 

This isn't recommended - ideally, if your current commits are dirty, you should fix up your working copy and commit that, check that your build still works, and only then run the BFG to clean up your history. 

Cleaning 
-------- 

Found 11182 commits 
Cleaning commits:  100% (11182/11182) 
Cleaning commits completed in 782 ms. 

BFG aborting: No refs to update - no dirty commits found?? 

I bin auf Windows 10 btw. Verwenden der Git-Version 2.9.2.windows.1.

Irgendwelche Ideen?

Antwort

0

Ich habe das Problem gefunden. Das BFG-Tool muss in den Argumenten doppelte Anführungszeichen haben. Keine einfachen Anführungszeichen wie im Atlassian-Beispiel. Vielleicht ein Problem nur für Windows?

FYI: Der Arbeits Befehl lautet dann:

java -jar bfg-1.12.15.jar --convert-to-git-lfs "*.{msi,7z,gz,zip,bin,exe,psd,pdf}" --no-blob-protection ent.git

+0

Gelöscht: Ja, es scheint ein Cygwin-Problem zu sein. –

0

Wenn Sie dieses Problem haben und es ist nicht durch die falsche Art von Anführungszeichen verursacht, wie es für @Spiralis war, vielleicht haben Sie, das gleiche Problem wie ich. Ich habe es in Cygwin laufen lassen, und es hat nicht funktioniert. Das Ausführen in normalen Windows-Eingabeaufforderung funktionierte für mich mit dem angegebenen Format.

Verwandte Themen