Welcome to the Time-Traveling Commits repo! This project uses a .bat script to automate, randomize, and even backdate your GitHub commits. Think of it like a secret sidekick that keeps your contribution graph looking extra active—purely for fun and learning, of course.
This batch file takes advantage of Git’s ability to set commit dates manually, allowing you to fill up your commit history for days, months, or even years past. It also uses random checks so you don’t end up with perfectly uniform commits every single day—just enough “chaos” to keep it from looking suspiciously robotic.
-
Clone this Repository
git clone https://github.com/<your-username>/<your-repo-name>.git
-
Navigate to the Repo Folder
cd <your-repo-name>
-
Verify You Have Git Installed
Make sure you have Git installed on your machine. If not, download it here. -
Edit the
.batFile
Open the.batscript in a text editor. Update any paths and user information (like username, email, or the directory path) that are specific to your environment.
-
Directory Change
The script navigates to the folder where your Git repository is stored. -
Delayed Variable Expansion
Batch scripts can be finicky about variable updates within loops, so we enableenableextensions enabledelayedexpansionto handle them smoothly. -
Date Range & Random Frequency
The script loops through specified years, months, and days. It uses a random number to decide how often to commit, so it’s not a perfect daily pattern. -
activity.txt
This file is updated each time a commit is made. It’s our “change” that Git notices. If this file never changes, Git won’t commit anything! -
Dynamic Commit Messages
A list of predefined commit messages is included. The script randomly picks one each time to keep your commit history interesting. -
Backdating with
--date
The--dateparameter lets us set the commit date to a specific day, even if it’s in the past. This is how older contributions appear on your GitHub timeline. -
Single Push
After all commits are generated, the script pushes them in one go, populating your contribution graph.
- Modify Years
Change thestartYearandendYearto define how far back (and forward) you want to pepper your commits. - Adjust Commit Frequency
In the script, you’ll find something likeif !freq! LSS 3. Tweak this to control how often a commit is made out of 7 possible days. - Run the Script
Double-click the.batfile or run it via command prompt:commitScript.bat
- Sit Back & Watch
The script will iterate through dates, randomly choose commit days, and push everything to GitHub. Check your profile after it finishes to see the results.
- Educational & Fun Use Only: This project is intended as a playful demonstration of batch scripting and Git’s date functionality. It’s not meant to deceive employers, collaborators, or anyone else about your coding habits.
- Quality Over Quantity: While this can make your GitHub graph look jam-packed, real, meaningful commits are always more valuable. Treat this like a neat trick or a learning experience.
- Office / Workplace Use: If you’re using this at work, be sure to communicate with your team about any automated commits. Unexpected commit spikes can sometimes raise questions!
This project is open-source under the MIT License. Feel free to explore, modify, and share—just remember to keep it fun and responsible!