Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm managing git repos cloned with --mirror, and I need to do a git remote update using JGit.
git remote update
Do I use a FetchCommand, or is there any other command?
What is the equivalent FetchCommand of a git remote update?
を使用FetchCommandして呼び出しsetRemote、フェッチ元のリモートの名前を指定する必要があります。
FetchCommand
setRemote
FetchCommandフェッチするリモートが複数ある場合は、フェッチ元のリモートごとに新しいインスタンスを作成します。