2012-04-27 5 views

答えて

13

あなたは、名前のツリーからファイルをアーカイブするコマンド

git archive branchname 

を使用することができます。私。あなたは.gitignore.gitはエクスポートされません)のようなファイルやフィルタファイルをパックするtarに出力を渡すことができます。詳細はアウトgit help archive

git archive branchname | tar -x -C c:\git-my-branch 

チェックアウト。

既存のレポ内部svn export . otherpathの同等

​​

svn export url otherpathの同等は、[正確な "SVNのエクスポート" gitのための同等のコマンド?](HTTPの

git archive --remote=url branchname | (cd otherpath; tar x) 
+0

ありがとうございます。最後のコマンド(git archive --remote = url branchname |(cd otherpath; tar x))のようなものを探していますが、これは動作しません。たとえば、次のように動作していません。 git archive [email protected]:gihanshp/WordPress-Widget-Boilerplate.git master | cd/tmp/ – gihan

+0

あなたは 'git archive branchname | (cd otherpath; tar x) '? –

+0

リモートサーバーから直接コピーしようとしています – gihan

関連する問題