|
|
1
0
你可以随时使用
显然你可以在pygithub做这件事。 Python - how to check whether the path is under a git repo? and extract the repo name . 答案中的代码示例(将打印更改为python3):
你可以看看他们的源代码,看看他们在运行什么命令。 |
|
|
2
0
您还可以简单地从remotes配置获取存储库URL,如果您不想使用外部库,只需进行一些简单的文件读取和解析。
读文件
|