removeRemote - Remove remote from Git repository - MATLAB (original) (raw)

Main Content

Remove remote from Git repository

Since R2025a

Syntax

Description

removeRemote([repo](#mw%5F8bii22e3678-48fc-40d8-bf15-3780832a2297%5Fsep%5Fmw%5F9398b140-3a6f-498b-ab69-c91e7e62a51d),[remote](#mw%5F8bii22e3678-48fc-40d8-bf15-3780832a2297%5Fsep%5Fmw%5F1f5c58fa-a55f-4dda-a1a0-87e55f95c5e2)) removes the remote remote from the Gitâ„¢ repository repo.

example

Examples

collapse all

Navigate to your repository folder and create a repository object.

Remove the remote fork.

removeRemote(repo,"fork");

Input Arguments

collapse all

Name or URL of the remote to remove, specified as a string scalar, a character vector, or a matlab.git.GitRemote object.

Example: "origin",'https://github.com/my/repo'

Data Types: char | string

Version History

Introduced in R2025a