Skip to content

Latest commit

 

History

History
88 lines (58 loc) · 1.68 KB

README.md

File metadata and controls

88 lines (58 loc) · 1.68 KB

HACKTIVITY

Hacktivity is a node script to ✌️hack✌️ (read: fake) git commit history.

Hack contribution activity on GitHub based on your configuration.

How to hack your contributions on GitHub

Create new repository on GitHub web interface

Create new repository from web interface here: https://github.com/new

Clone new repository on your local machine

$ git clone https://github.com/FooBar/repository_name.git

Configure git

Configure git with your github.com account user email for hacked contributions to show up on your profile.

$ git config user.email "you@example.com"

Set up

Copy all of the contents of this repo and from your local repository folder:

Install dependencies

$ yarn install

or

$ npm install

Customize

Feel free to edit the config constants in index.js.

// config
const WEEKDAY_COMMIT_CHANCE = 0.6; // 60%
const WEEKEND_DAY_COMMIT_CHANCE = 0.3; // 30%
const MIN_COMMITS = 1;
const MAX_COMMITS = 10;
const EARLIEST_COMMIT_TIME = '09:30';
const LATEST_COMMIT_TIME = '18:00';

Execute Hacktivity

From your local repository folder:

$ node .

Enter starting and ending dates when prompted.

Push repository to GitHub

$ git push

License

Copyrights (c) 2020 Matthew Jackson

License Distributed under the MIT license.

If you like hacktivity please star! And follow me on GitHub: matjack9