Files
TashaSkyUp-EternalKernelPyt…/git.py
T
2023-07-07 01:54:57 -04:00

12 lines
277 B
Python

import subprocess
def check_git_status():
try:
output = subprocess.check_output(['git', 'status'])
print(output.decode('utf-8'))
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
if __name__ == "__main__":
check_git_status()