깃허브 GitHub

[깃 허브] 리모트 리포지토리 변경하기

훈츠 2020. 7. 2. 17:03
반응형

깃 리모트 변경 하기

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Hoons Blog---https://rain2002kr.tistory.com------------------------------------------------------------------코드///

//새 리포지토리 REMOTE 추가후 가져오기
git remote add origin https://github.com/계정/리포지토리
git pull

//리포지토리 최초 아이디와 이메일 등록
git config --global user.name "user name"
git config --global user.email "user e-mail"

//기존 리포지토리 깔끔하게 PULL / PUSH
git pull
git add .
git commit -"clean push"
git push
 
//기존 리포지토리 REMOTE 제거
git remote remove origin
 
 
 

 

반응형