問題タブ [nodegit]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - nodegit を使用して裸のリポジトリを git-clone する
やあ、
ワークツリーを裸のレポとして複製していますnodegit
これにより、次のように裸のレポが作成されます
注:newbare
のすべてのlocalrepo
ブランチへの参照がありますが、アクティブなブランチ/git/newbare/refs/remote/origin
のみがローカル参照localrepo's
に複製されますnewbare's
つまりlocalrepo
、クローンされたときにマスター上にあった場合、マスターnewbare
のみを追跡します
これで、git
すべてのブランチを追跡できorigin
ます
ここでフェッチに関する詳細情報が必要な場合は、refspecを参照してください。
問題
remote/origin
すべてのブランチについて、裸のディレクトリに追跡ブランチをセットアップする方法がわかりませんnodegit