inblog logo
|
Coding's note
    GIT

    github 연결 끊기 및 변경

    이소연's avatar
    이소연
    Aug 06, 2024
    github 연결 끊기 및 변경
    Contents
    github 동기화
     

    1. GitHub 연결 끊기

    git remote remove /*이름*/ 처음 github와 연동할 때 remote 이름을 origin이라고 설정했으면 **git remote remove origin** 이런식으로 작성할 ****것.
    💡
    git remote rm origin : 기존의 연결 url 삭제(remove)
     

    2. GitHub ID 변경

    2-1) github에 데이터를 올려보내는 명령어를 작성하면 오류가 난다.

     
    notion image
    error : 403 (github에 로그인이 안 되어있을 때 나오는 오류)

    2-1) 자격 증명 관리자

    💡
    기존에 있는 github 아이디를 삭제해주고, 다시 git push origin master 를 해주면 정상적으로 작동.
    notion image

    github 동기화

    notion image
     
    💡
    URL 부분에 github의 repository 링크를 입력하면 집에서도 확인이 가능하다.
    Share article
    Contents
    github 동기화

    Coding's note

    RSS·Powered by Inblog