diff --git a/Clippings/git remote 변경 - Google 검색.md b/Clippings/git remote 변경 - Google 검색.md new file mode 100644 index 0000000..2320048 --- /dev/null +++ b/Clippings/git remote 변경 - Google 검색.md @@ -0,0 +1,255 @@ +--- +title: "git remote 변경 - Google 검색" +source: "https://www.google.com/search?q=git+remote+%EB%B3%80%EA%B2%BD&oq=git+remote&gs_lcrp=EgZjaHJvbWUqBwgCEAAYgAQyCQgAEEUYORiABDIHCAEQABiABDIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIHCAUQABiABDIHCAYQABiABDIHCAcQABiABDIHCAgQABiABDIHCAkQABiABNIBCjEyMTM3ajBqMTWoAgiwAgE&sourceid=chrome&ie=UTF-8" +author: +published: +created: 2025-12-22 +description: +tags: + - "clippings" +--- +## 접근성 링크 + +주요 콘텐츠로 이동 [접근성 도움말](https://support.google.com/websearch/answer/181196?hl=ko) + +접근성 관련 의견 보내기 + +## 검색결과 + +github 리모트 리포지토리 변경하기 + + + +Gist + +https://gist.github.com ›... + +[View original](https://gist.github.com/480/4681b67d2a906db8c6c1321cc678f05f) + +Gist + +https://gist.github.com ›... + +깃 리모트 변경 하기; 기존 리포지토리 깔끔하게 pull / push. *git pull git add*. git commit -m "clean push" git push; 기존 리포지토리 remote 제거. git remote... + +git 원격 저장소 주소변경 + + + +velog + +https://velog.io › git-원격-저장소-주소변경 + +[View original](https://velog.io/@panboard/git-%EC%9B%90%EA%B2%A9-%EC%A0%80%EC%9E%A5%EC%86%8C-%EC%A3%BC%EC%86%8C%EB%B3%80%EA%B2%BD) + +velog + +https://velog.io › git-원격-저장소-주소변경 + +2023\. 11. 27. — 기존 원격 저장소 주소를 변경하기 위해서는 *git remote set-url 명령어를 사용하면 된다*. 변경하기 전 현재 로컬 git 저장소가 어느 원격 저장소와 연결... + +\[Git\] Git Remote Repository 변경하는 방법 + + + +티스토리 + +https://a-curious.tistory.com ›... + +[View original](https://a-curious.tistory.com/156) + +티스토리 + +https://a-curious.tistory.com ›... + +2023\. 2. 27. — *Git* 에서 리모트 저장소(*remote* repository)를 다른 주소 URL로 *변경* 하고자 합니다. 예를들어 두 개의 *git* 리모트 저장소 있는 경우 한 쪽에서 다른 쪽으로... + +## AI 개요 + +Git 원격 저장소(remote)를 변경하려면 + +==**기존 연결을 제거하고 새 주소로 추가** 하거나(가장 확실), **`git remote set-url` 명령으로 주소만 수정**== 하면 됩니다. 먼저 `git remote -v` 로 현재 연결을 확인하고, `remove` 후 `add` 하거나 `set-url` 명령으로 새로운 URL을 지정한 뒤, `fetch` / `pull` / `push` 로 동기화하면 됩니다. + +1\. 현재 연결 확인 + +bash + +``` +git remote -v +``` + +- `origin` 등 현재 설정된 원격 저장소 URL을 확인합니다. + +2\. 방법 A: 기존 연결 제거 후 새 연결 추가 (가장 일반적) + +1. **기존 연결 제거:** + bash + ``` + git remote remove origin + ``` + - `origin` 대신 다른 이름(예: `upstream`)이 연결되어 있다면 해당 이름을 사용하세요. +2. **새 연결 추가:** + bash + ``` + git remote add origin <새로운_저장소_URL> + ``` + - 예: `git remote add origin github.com`. +- **확인 및 동기화:** + bash + ``` + git remote -v + git fetch origin + git pull origin main # 또는 master 등 기본 브랜치 + ``` + +3\. 방법 B: URL만 변경 (`set-url`) + +- `origin` 같은 이름은 그대로 두고 URL만 바꿀 때 사용합니다. HTTPS에서 SSH로 바꾸는 경우 등. + +bash + +``` +git remote set-url origin <새로운_저장소_URL> +``` + +- 예: `git remote set-url origin git@github.com:user/new-repo.git`. +- 이후 `git fetch` 및 `git pull` 등으로 변경사항을 확인합니다. + +4\. 참고: 원격 저장소 이름 변경 (Remote 이름 자체를 바꿀 때) + +- 원격 저장소의 별칭(alias) 이름 자체를 바꿀 때 사용합니다. + +bash + +``` +git remote rename <기존_이름> <새로운_이름> +``` + +- 예: `git remote rename origin upstream`. +![](http://t3.gstatic.com/images?q=tbn:ANd9GcSmxJTHKrsOO36Iid93wYF3u9aVEawnAPWc4bgqopdl2vev2x1wk-SuU73bVOOObo2na1w) + +AI 모드로 더 자세히 알아보기 + +AI 답변에 오류가 있을 수 있습니다. [자세히 알아보기](https://support.google.com/websearch?p=ai_overviews&hl=ko) + +긍정적인 의견 + +부정적인 의견 + +\[Git\] 원격 저장소(remote repo) URL을 변경 + + + +GitHub + +https://hyanggonjin.github.io › posts › change\_repo\_url + +[View original](https://hyanggonjin.github.io/posts/change_repo_url/) + +GitHub + +https://hyanggonjin.github.io › posts › change\_repo\_url + +2024\. 3. 30. — 원격 저장소 URL 변경... *remote-name 은 변경하려는 원격 저장소의 이름* (대부분의 경우 origin ), new-url 은 새로운 원격 저장소의 URL입니다. + +Git Remote 저장소 변경하기 + + + +Wallel + +https://wallel.com › Git + +[View original](https://wallel.com/git-remote-%EC%A0%80%EC%9E%A5%EC%86%8C-%EB%B3%80%EA%B2%BD%ED%95%98%EA%B8%B0/) + +Wallel + +https://wallel.com › Git + +2024\. 12. 16. — Git Remote 저장소 변경하기 · *현재 저장소 확인* · 저장소 정리 · 저장소 제거 · 새 저장소 연결 · 확인 및 최신화. git fetch git pull. Copy. 끝. git... + +\[Github\] github respository 변경과 git origin 재설정 - Daily Pogle + + + +티스토리 + +https://pogle-jeong.tistory.com ›... + +[View original](https://pogle-jeong.tistory.com/100) + +티스토리 + +https://pogle-jeong.tistory.com ›... + +2023\. 4. 6. — 1\. github respository 명 *변경*. 2. 기존연결된 origin 에서 remote(연결)끊고 다시 remote(연결) 하기 *git remote* -v // 연결되어있나 재확인 *git remote*... + +리모트 저장소 + + + +Git + +https://git-scm.com › book › Git의-기초-리모트-저장소 + +[View original](https://git-scm.com/book/ko/v2/Git%EC%9D%98-%EA%B8%B0%EC%B4%88-%EB%A6%AC%EB%AA%A8%ED%8A%B8-%EC%A0%80%EC%9E%A5%EC%86%8C) + +Git + +https://git-scm.com › book › Git의-기초-리모트-저장소 + +*git remote rename 명령으로 리모트 저장소의 이름을 변경할 수 있다*. 예를 들어 pb 를 paul 로 변경하려면 git remote rename 명령을 사용한다. $ git... + +리모트 저장소 이름변경 및 삭제 · Git, 분산버전 관리시스템 + + + +gitbooks.io + +https://mylko72.gitbooks.io › content › remote › remove + +[View original](https://mylko72.gitbooks.io/git/content/remote/remove.html) + +gitbooks.io + +https://mylko72.gitbooks.io › content › remote › remove + +*git remote rename 명령으로 리모트 저장소의 이름을 변경할 수 있다*. 예를 들어 'myJSDev'를 'myJavascriptDev'로 변경하려면 다음과 같이 한다. + +\[Git\] Git remote URL 변경하기 (원격 저장소 변경하기) + + + +티스토리 + +https://walkerlab.tistory.com ›... + +[View original](https://walkerlab.tistory.com/13) + +티스토리 + +https://walkerlab.tistory.com ›... + +2020\. 3. 23. — 변경을 위해서는 *git remote set -url 을 통하여 원격 저장소를 변경* 할 수 있습니다. git remote set-url origin http://222.222.222.222... + +관련 질문 + +의견 + +Git 저장소의 (확인, 추가, 삭제, 이름변경, 가져오기, 변경사항 저장) + + + +티스토리 + +https://nemomemo.tistory.com ›... + +[View original](https://nemomemo.tistory.com/83) + +티스토리 + +https://nemomemo.tistory.com ›... + +2021\. 7. 7. — Git Repository 확인하기: $ git remote show 6. Git Repository 이름 변경하기: $ *git remote rename <현재 Repository alias* > + +Google 앱 \ No newline at end of file