sync
Copy submodule remote info into submodule repo.
This copies the information about the submodules URL into the checked out submodule config, acting like "git submodule sync". This is useful if you have altered the URL for the submodule (or it has been altered by a fetch of upstream changes) and you need to update your local repo.
Signature
ts
class Submodule {
sync(signal?: AbortSignal | null | undefined): Promise<void>;
}Parameters
- signalnull | AbortSignal
Optional AbortSignal to cancel the operation.
