Skip to content

Instantly share code, notes, and snippets.

@Aaron7noraA
Aaron7noraA / git_remote_set-url.md
Created April 7, 2023 11:11 — forked from fokayx/git_remote_set-url.md
Git switch remote URLs. Git 更換遠端伺服器倉庫網址

Git 更換遠端伺服器倉庫網址URL

1.確認目前Git遠端伺服器網址: git remote -v

git remote -v
origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
origin  https://github.com/USERNAME/REPOSITORY.git (push)

2.更換Git遠端伺服器位網址,使用:git remote set-url