月度归档: 2025 年 6 月

1 篇文章

批量提交git代码
所有的项目需要单独放到一个目录,然后git库中的名称需要与项目文件夹名称一致 import os import subprocess import shutil from pathlib import Path def is_git_repo(path): """检查路径是否为Git仓库""" try: subprocess.run( ['…