How to remove Github repository

In this article, we will explain how to disconnect the connection between the local repository and the GitHub remote repository.


Connection Check

First, let's check the currently connected remote repository.

git remote -v

git remote -v
remotev

Remove Remote Repository

After confirming the connection with the GitHub remote repository, you can disconnect the currently connected remote repository using the following command: git remote remove origin.

git remote remove origin

git remote remove origin

Additional Explanation

    Please check if "origin" appears before the URL path as shown below:

    origin https://github.com/cptkuk91/(repositoryName).git (fetch)
    origin https://github.com/cptkuk91/(repositoryName).git (push)
    

After entering git remote remove origin, if there is no response when entering git remote -v, it means that the GitHub remote repository has been successfully removed.

remoteremove