3

I'm managing git repos cloned with --mirror, and I need to do a git remote update using JGit.

Do I use a FetchCommand, or is there any other command?

What is the equivalent FetchCommand of a git remote update?

4

1 に答える 1

3

を使用FetchCommandして呼び出しsetRemote、フェッチ元のリモートの名前を指定する必要があります。

FetchCommandフェッチするリモートが複数ある場合は、フェッチ元のリモートごとに新しいインスタンスを作成します。

于 2012-03-07T04:43:57.570 に答える