728x90
반응형

참고 링크 : https://gist.github.com/480/4681b67d2a906db8c6c1321cc678f05f

 

github 리모트 리포지토리 변경하기

github 리모트 리포지토리 변경하기. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

1. 기존 repository pull/push 하기

git pull
git add .
git commit -m "clean push"
git push

2. 기존 repository remote 제거

git remote remove origin

3. 새 repository remote 추가

git remote add origin [깃 주소]
728x90
반응형
LIST

'Git' 카테고리의 다른 글

[GIT] git branch merge하기  (0) 2022.09.02
728x90
반응형

참고한 블로그

Git Branch Merge하기

  1. 현재 branch commit 후 push 하기
  2. git checkout master/main
  3. git merge <merge할 branch 이름>
  4. git push -u origin master/main
  5. git checkout <원래 branch 이름> (다시 원래 branch로 돌아가고자 할 때)

* master/main 중 하나의 이름만 사용해야 함.

728x90
반응형
LIST

'Git' 카테고리의 다른 글

[Git] github remote 저장소 변경하기  (0) 2022.11.13

+ Recent posts