Welcome to generate-fake-commit! π This is a CLI (Command Line Interface) for generating fake commits in a git repository. It's useful for testing purposes or to spice up your contribution graph. π Made for educational purposes π
npx generate-fake-commit --remoteurl <URLGIT> --single --date <YYYY/MM/DD>
npx generate-fake-commit --remoteurl <URLGIT> --range --start <YYYY/MM/DD> --stop <YYYY/MM/DD>| Option | Alias | Description |
|---|---|---|
--remoteurl |
-u |
π Remote URL for the git repository |
--single |
-s |
π Create a single commit |
--range |
-r |
π Create commits over a date range |
--date |
-d |
π Date for a single commit (format: YYYY/MM/DD) |
--start |
-a |
π Start date for range commits (format: YYYY/MM/DD) |
--stop |
-o |
β³ End date for range commits (format: YYYY/MM/DD) |
--mincommits |
-m |
Minimum number of commits to generate (default: 1) |
--maxcommits |
-M |
Maximum number of commits to generate (default: 5) |
After execution, navigate to the repository folder and perform a git push to update the remote repository. ππ»
