Ask Your Question
0

Git: Remove the remote origin

asked 2023-04-04 00:07:33 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-04 00:07:58 +0000

qstack gravatar image

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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

1 follower

Stats

Asked: 2023-04-04 00:07:33 +0000

Seen: 22 times

Last updated: Apr 04 '23