40
loading...
This website collects cookies to deliver better user experience
disclaimer: I made this project with the aim of having fun and to learn to automate things using the Python language
total_day = 366 #total days back
commit_frequency = 10 #commit time per day
repo_link = "https://github.com/aliifam/github-activity-generator.git"
while tl > 0:
ct = commit_frequency
while ct > 0:
f = open("commit.txt", "a+")
l_date = now + datetime.timedelta(days=-pointer)
formatdate = l_date.strftime("%Y-%m-%d")
f.write(f"commit ke {ctr}: {formatdate}\n")
f.close()
os.system("git add .")
os.system(f"git commit --date=\"{formatdate} 12:15:10\" -m \"commit ke {ctr}\"")
print(f"commit ke {ctr}: {formatdate}")
ct-=1
ctr+=1
pointer+=1
tl-=1