To remove a remote named "origin" from your Git repository, you can use the following command:
git remote remove origin
This command removes the remote named "origin" from your repository's list of remotes. After running this command, you won't be able to push or pull changes to or from this remote anymore, unless you add it back as a new remote.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-04-04 00:07:33 +0000
Seen: 3 times
Last updated: Apr 04
How can I speed up a large Git Repository with lots of Directories?
How can I commit only files that were modified in Git, not files that were deleted?
Git: Is it a good Idea to add the same Submodule multiple times as Submodule a Submodule?
How can I check out a Branch in Git?
Is it possible to refresh the index when Git stash pop requires merging?