这个问题在这里已经有了答案:
How can I determine the URL that a local Git repository was originally cloned from?
(26 个回答)
5年前关闭。
我已将 git repo 从我的服务器克隆到不同的文件夹。现在我对我从哪里克隆了几个特定的存储库感到困惑。我怎么知道我从哪个位置克隆了 git 项目?
最佳答案
使用:
git remote show origin
或者:
git config --get remote.origin.url
关于git - 我如何知道我克隆 git 存储库的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38918108/