import os

commit_string = "选择data的前多少个维度参与训练"
not_add = ['results', 'data', 'weights']
for item in os.listdir():
    if item in not_add:
        # print(item)
        continue
    else:
        os.system(f"git add {item}")
os.system(f'git commit -m "{commit_string}"')
os.system("git push origin main")
[((5, 12, 5, 24), 'os.listdir', 'os.listdir', ({}, {}), '()', False, 'import os\n'), ((11, 0, 11, 45), 'os.system', 'os.system', ({(11, 10, 11, 44): 'f"""git commit -m "{commit_string}\\""""'}, {}), '(f\'git commit -m "{commit_string}"\')', False, 'import os\n'), ((12, 0, 12, 33), 'os.system', 'os.system', ({(12, 10, 12, 32): '"""git push origin main"""'}, {}), "('git push origin main')", False, 'import os\n'), ((10, 8, 10, 36), 'os.system', 'os.system', ({(10, 18, 10, 35): 'f"""git add {item}"""'}, {}), "(f'git add {item}')", False, 'import os\n')]