Skip to content

Instantly share code, notes, and snippets.

@jeonguk
Last active January 12, 2018 06:34
Show Gist options
  • Save jeonguk/496b33a95658dcf182566f3d7193053d to your computer and use it in GitHub Desktop.
Save jeonguk/496b33a95658dcf182566f3d7193053d to your computer and use it in GitHub Desktop.
git remote url change
기존 원격 저장소 URL을 변경하기 위해 git remote set-url 명령어를 사용
$ git remote -v
# View existing remotes
origin https://github.com/user/repo.git (fetch)
origin https://github.com/user/repo.git (push)
$ git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL
$ git remote -v
# Verify new remote URL
origin https://github.com/user/repo2.git (fetch)
origin https://github.com/user/repo2.git (push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment