This program generates Git commits for random days in the current year, up to and including the current day. The purpose of this program is to create a unique contribution history in your GitHub profile.
- Git command line tool installed and configured on your system.
- A Git repository to run the program in.
- Generates a random number of Git commits for each day of the year up to the current day.
- Adds a line to a
green.txt
file for each commit with a unique identifier. - Commits are dated with the
--date
option to create a custom commit history.
- Open the Visual Studio Developer Command Prompt.
- Navigate to the directory containing the
main.c
file. - Compile the program using the following command:
cl main.c
- Run the compiled program
main.exe
in a Git repository:main.exe
- Open a terminal or command prompt.
- Navigate to the directory containing the
main.c
file. - Compile the program using the following command:
gcc main.c -o main.exe -lkernel32
- Run the compiled program
main.exe
in a Git repository:main.exe
- You can use the
--backtrack
or--b
flag when runningmain.exe
to generate commits starting from the current day and going back the specified number of days. E.g.main.exe --backtrack 2
generates commits starting from the current day and going back 2 days. The default value is 365 days.
- The program has been tested on Windows x64 systems. Compatibility with other operating systems is not guaranteed.
This project is licensed under the MIT License - see the LICENSE file for details.