Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artiebits/fake-git-history
A command-line tool to generate GitHub and GitLab activity graph.
https://github.com/artiebits/fake-git-history
commit-history contribution-graph contributions contributions-calendar git git-activity github github-profile gitlab
Last synced: 5 days ago
JSON representation
A command-line tool to generate GitHub and GitLab activity graph.
- Host: GitHub
- URL: https://github.com/artiebits/fake-git-history
- Owner: artiebits
- License: mit
- Created: 2019-08-14T05:56:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-28T16:32:52.000Z (24 days ago)
- Last Synced: 2025-01-09T16:52:14.663Z (12 days ago)
- Topics: commit-history, contribution-graph, contributions, contributions-calendar, git, git-activity, github, github-profile, gitlab
- Language: JavaScript
- Homepage: https://artiebits.com
- Size: 125 KB
- Stars: 865
- Watchers: 9
- Forks: 85
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Generate Git Commits
A command-line tool that generates GitHub or GitLab activity graph to make it look like you have been coding regularly.
## How To Use
1. Make sure you have [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and
[Node.js](https://nodejs.org/en/download/) installed on your machine.
2. Generate your commits:
```shell script
npx fake-git-history
```
This command creates a my-history folder, initializes git, and generates commits for every day within the last year (0-3 commits per day).
3. Create [a private repository](https://github.com/new) called `my-history` in your GitHub or GitLab, and push the changes:
```shell script
cd my-history
git remote add origin [email protected]:/my-history.git
git push -u origin master
```Done! Now take a look at your GitHub profile 😉
## Support This Project
If you rely on this tool and find it useful, please consider supporting it. Maintaining an open source project takes time and a cup of coffee would be greatly appreciated!
## Customizations
### `--commitsPerDay`
Specify the number of commits to be created for each day.
The default value is `0,3`, which means it will randomly generate from 0 to 3 commits per day. For example, to generate commits randomly between 0 and 5 per day, you can do:```shell script
npx fake-git-history --commitsPerDay "0,5"
```### `--workdaysOnly`
Use this option if you don't want to commit on weekends. Example:
```shell script
npx fake-git-history --workdaysOnly
```### `--startDate` and `--endDate`
By default, the script generates GitHub commits for every day within the last year.
However, if you want to generate activity for specific dates, use these options:```shell script
npx fake-git-history --startDate "2020/09/01" --endDate "2020/09/30"
```## PS
This tool was created as a joke, so please don't take it seriously. While cheating is never encouraged, if someone is judging your professional skills based on your GitHub activity graph, they deserve to see a rich activity graph 🤓