import datetime suffixes alfa bravo charlie delta echo def write_git_c

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import datetime
suffixes = ['alfa', 'bravo', 'charlie', 'delta', 'echo']
def write_git_commands(name, suffixes):
for suffix in suffixes:
time = datetime.datetime.now().time()
print (f'git checkout {name}_{suffix}')
print(f'echo {datetime.datetime.now().date()} >> {time}.txt')
print (f'touch {suffix}.txt')
print(f'git add {time}.txt')
print(f'git add {suffix}.txt')
print(f'git commit -m "adding 2 files"')
print(f'git push origin {name}_{suffix}')
print(f'------------------------')
write_git_commands("tetiana_markova", suffixes)