Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
几个月前我有cloned一个 repo,想知道它是从我的 fork 还是从原始存储库完成的。我应该运行哪个 git 子命令来获得答案?
cloned
默认情况下,origin远程将是从中克隆的存储库。
origin
要查看存储库中的远程列表,请使用git remote -v. 这应该足以知道它是从哪里克隆的,但可以查看有关特定远程使用的更多详细信息git remote -v show <remote name>。
git remote -v
git remote -v show <remote name>