如何找出 git clone 的原始 repository

2025-05-22 10:34:58
推荐回答(1个)
回答1:

有两种方式:
① 查看 .git/config 的内容:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = server:gitRepo.git

② 使用 git remote -v 命令