티스토리 뷰

Switching remote URLs from SSH to HTTPS

  1. Open Terminal.

  2. Change the current working directory to your local project.

  3. List your existing remotes in order to get the name of the remote you want to change.

    git remote -vorigin  git@github.com:USERNAME/REPOSITORY.git (fetch)origin  git@github.com:USERNAME/REPOSITORY.git (push)
    
    
  4. Change your remote's URL from SSH to HTTPS with the git remote set-url command.

    git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
    
    
  5. Verify that the remote URL has changed.

    git remote -v
    # Verify new remote URL
    origin  https://github.com/USERNAME/OTHERREPOSITORY.git (fetch)
    origin  https://github.com/USERNAME/OTHERREPOSITORY.git (push)


'기타 > Git 깃 긷 깉' 카테고리의 다른 글

브라켓 Git 설치 (AWS)  (0) 2017.07.23
깃은 어렵다.  (0) 2017.07.21
git push  (0) 2017.07.21
git 에서 CRLF 개행 문자 차이로 인한 문제 해결하기  (0) 2017.07.21
git - 간편 안내서  (0) 2017.07.21
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함