Generate Git commits.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Go to file
artiebits 8a33493a83
refactor a bit (#43)
5 months ago
.github Update FUNDING.yml 4 years ago
src refactor a bit (#43) 5 months ago
.gitignore first commit 5 years ago
LICENSE Create LICENSE 5 years ago
README.md fix a typo in README.md (#38) 8 months ago
package.json 1.8.0 2 years ago
yarn.lock Bump debug from 4.2.0 to 4.3.4 (#41) 5 months ago

README.md

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 it works

How To Use

  1. Make sure you have Git and Node.js installed on your machine.
  2. Generate your commits:
    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 called my-history in your GitHub or GitLab, and push the changes:
    cd my-history
    git remote add origin git@github.com:<USERNAME>/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!

Buy Me A Coffee

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:

npx fake-git-history --commitsPerDay "0,5"

--workdaysOnly

Use this option if you don't want to commit on weekends. Example:

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:

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 🤓