Files
guanjihuan.com/2025.02.19_check_repository_to_commit/check_repository.py
2025-07-11 17:56:39 +08:00

11 lines
369 B
Python

import guan
# 在某个目录中寻找所有 Git 项目
git_repository_array = guan.find_git_repositories('D:/data')
guan.print_array(git_repository_array)
print('\n---\n')
# 获取未 git commit 的 Git 项目
git_repository_array_to_commit = guan.get_git_repositories_to_commit(git_repository_array)
guan.print_array(git_repository_array_to_commit)
print('\n---\n')