2017-06-14 5 views
2

git lfsを使用するように既存のgit repoを変換しようとしています。私はここBFGツールを使用して、Atlassian's recipeを以下午前:bfgツールを使用してgit repoを大容量ファイルサポート(lfs)を使用するように変換できません。

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:https://rtyley.github.io/bfg-repo-cleaner/

問題は、私が実際の変換を行うための提案コマンドを発行したとき、それが行わなし実際の作業でほとんどすぐに終わるということですWindowsで10 btwです。 gitバージョン2.9.2.windows.1を使用しています。

アイデア?

答えて

0

問題が見つかりました。 BFGツールの引数には、二重引用符が必要です。 Atlassianサンプルのようにシングルクォートではありません。おそらくWindowsの問題だけでしょうか?

FYI:作業コマンドは次のようになります。

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

削除済み:はい、cygwinの問題と思われます。 –

0

あなたはこの問題を持って、それはそれは@Spiralisのためにあったように引用符の間違った種類によって引き起こさないなら、多分あなたが持っています私と同じ問題。私はCygwinで実行していましたが、動作しませんでした。通常のウィンドウコマンドプロンプトでそれを実行すると、私のために所定のフォーマットで動作しました。

関連する問題