Taeyoung's profile picture

Taeyoung

Posted time

Posted 5 months ago

Github Repository 연결 끊기

현재 로컬 저장소(local repository)에 연결되어 있는 Github 원격 저장소(remote repository) 연결을 끊는 방법에 대해서 설명드리겠습니다.

연결 확인

먼저 현재 연결되어 있는 remote repository를 확인합니다.

git remote -v

remote repository 제거

github remote repository 연결되어 있는 것을 확인 후, 현재 연결되어 있는 remote repository 저장소를 아래 명령어 git remote remove origin을 통해 끊을 수 있습니다.

git remote remove origin

추가 설명

아래와 같이 url 경로 앞에 origin을 확인해주세요.

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

git remote remove origin 입력 후 git remote -v를 입력했을 때, 응답값이 없으면 성공적으로 github remote repository 제거된 것입니다.

New Tech Posts