Fail to change the remote URL. #143146
Unanswered
youyungui
asked this question in
Repositories
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
General
Body
Issue: I encountered a critical issue when using GitHub repository to sync Logseq, with the following error message: fatal: unable to access 'https://github.saobby.my.eu.org.cnpmjs.org/youyungui/My-Knowledge-System.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com.cnpmjs.org:443. It appears that the root of the problem is that the remote URL of the GitHub repository was changed, causing sync issues.
Environment: I am using the latest version of macOS, 15.1, configured via both the web and GitHub desktop client.
Issue Manifestation: The GitHub repository's remote URL differs between the GitHub desktop client on different operating systems (Windows/macOS) and the website terminal results. For example, on macOS, the remote URL appears as https://github.saobby.my.eu.org.cnpmjs.org/youyungui/My-Knowledge-System.git, while on the GitHub desktop client on Windows and on the www.github.com website, the remote URL is displayed as https://github.com/youyungui/My-Knowledge-System.git.
Methods Attempted:
(1) Tried modifying the remote URL via the GitHub desktop client, but changes did not take effect.
(2) Attempted changing it through macOS terminal by resetting the remote URL, using the command: git remote set-url origin https://github.com/youyungui/My-Knowledge-System.git. This should be a fundamental solution, but upon rechecking with git remote -v, the incorrect URL remains.
(3) Modified .git/config directly via terminal using nano .git/config, where the correct URL https://github.com/youyungui/My-Knowledge-System.git appears.
(4) Reinstalled the GitHub desktop client and cleared cache traces, but the problem persists.
Additionally, I had previously run a command to accelerate GitHub sync, which resulted in the remote URL change, and now it can't be reverted. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions