Last active
November 19, 2021 21:42
-
-
Save cuuupid/0513d98556021d738c0cb72be0a63615 to your computer and use it in GitHub Desktop.
Gitsploit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a million commits | |
for Y in {1999..2018} | |
do | |
mkdir $Y | |
cd $Y | |
for M in {01..12} | |
do | |
mkdir $M | |
cd $M | |
for D in {01..31} | |
do | |
mkdir $D | |
cd $D | |
for i in {01..12} | |
do | |
echo "$i on $M/$D/$Y" > commit.md | |
export GIT_COMMITTER_DATE="$Y-$M-$D 12:$i:00" | |
export GIT_AUTHOR_DATE="$Y-$M-$D 12:$i:00" | |
git add commit.md -f | |
git commit --date="$Y-$M-$D 12:0$i:00" -m "$i on $M $D $Y" | |
done | |
cd ../ | |
done | |
cd ../ | |
done | |
cd ../ | |
done | |
git push origin master | |
git rm -rf 20** | |
git rm -rf 19** | |
git commit -am "cleanup" | |
git push origin master |
@rahulxdd Yes. It makes 12 commits per day for however many years it is configured, same as the original script.
brbsix I have just sent an email to you, I'd really appreciate it if you could please take a look and reply. You gave me two github resources where I could find a better way to do what I was trying to do with this script.
I am sorry to bother you again @brbsix. Could you please resend the email which you sent last week in response to my query? I accidently deleted it after reading it and now can't find in trash. Please
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rahulxdd Yes. It makes 12 commits per day for however many years it is configured, same as the original script.