I have a git repo that I did testing on by creating a bot that creates commits for me about 1 1/2 years ago. I was just learning about git and I wanted to look cool by having thousands of commits.
Essentially, what I did was I created a bot that adds a line to a file, adds that, commits it, then pushes it. So, about 54000+ commits are worthless. How would I remove all of those commits? Is this a good idea?
The commits that don't have value, which are the ones that I want to be removed, are in the middle, starting at 0c4068fb3
and ending at 42b8fae4b
. So, the legit commits are before 0c4068fb3
and after 42b8fae4b
. The commits that don't have value are easily detected. The reason is that when I created my bot, I used all of my commit messages that I had, and I put them in a list, which the bot would select from randomly, and use that for its commit message. So, any commit repeated multiple times is a commit without value.
Also, the majority of the commits that don't have value also say first commit
, or something like that.
So, here's the link to the commits section where the fake ones start. As you can tell, the commit messages keep repeating themselves.
The actual content inside of the fake commits is just an increased line to a file called bot.txt
. So, nothing of any value in those commits.
If not, could you tell me how I can remove all 54000+ commits and just keep the ones that actually have value?
Thanks