InfoSphere/GitHub Desktop/ 返回书籍
Work with your remote repo

Change the remote URL for a repository

qianmoQqianmoQ· 更新于 2026-09-16· 阅读 2 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Changing the remote URL for a repository in GitHub Desktop

You can change the remote URL for a repository you're working with in GitHub Desktop. You might do this if the repository has been renamed, or the username or organization that owns the repository has changed.

  1. In the "GitHub Desktop" menu bar, select Repository and click Repository Settings....

    Screenshot of the menu bar on a Mac. In the open "Repository" dropdown menu, a cursor hovers over "Repository Settings", highlighted in blue.

  2. On the Remote pane, under "Primary remote repository", type the desired URL.

  3. Click Save.

  1. In the Repository menu, click Repository settings....

    Screenshot of the "GitHub Desktop" menu bar on Windows. In the open "Repository" dropdown menu, "Repository Settings" is outlined in orange.

  2. On the Remote pane, under "Primary remote repository", type the desired URL.

  3. Click Save.

评论

登录后参与评论

正在加载评论…