2
我正在管理使用--mirror克隆的git repos,並且我需要使用JGit執行git remote update
。如何用jgit做「git remote update」的等價物?
我使用FetchCommand還是有其他命令?
什麼是git remote update
的等效FetchCommand?
我正在管理使用--mirror克隆的git repos,並且我需要使用JGit執行git remote update
。如何用jgit做「git remote update」的等價物?
我使用FetchCommand還是有其他命令?
什麼是git remote update
的等效FetchCommand?
您應該使用FetchCommand
並致電setRemote
指定要從中提取的遠程的名稱。
如果您有多個要從中取出的遙控器,請爲要從中取出的每個遙控器創建一個新的FetchCommand
實例。