Skip to content

endreth/CMH

Repository files navigation

GitHub GitHub top language GitHub language count GitHub code size in bytes GitHub repo size GitHub file size in bytes

CMH - A Github Commit Map Hacker

The CMH tool can populate the Github commit map with a non-random or random number of commits to improve its appearance. However, the tool is currently in a raw and unoptimized state.

The tool utilizes JGit (EGit) to create a local repository, where a user can select any desired past date and create non-random or random commits. Once the commits are made, they are pushed to an empty private repository, which ensures that no one will see them. The commits will then appear on the user's contribution graph.

It's worth noting that this tool currently lacks any exception handling or notification capabilities, as it was created in a single night. Therefore, it's important to provide all information correctly, as any errors will require restarting the entire process.

Usage

Run the JAR file available here:

$ java -jar cmh-1.0.jar
  1. Create an empty private repository (Do NOT add Readme or License).
  2. Generate a simple classic token for your profile:
  • Go to your Settings
  • Go to <> Developer settings (bottom left)
  • Go to Personal access tokens / Tokens(classic)
  • Select Generate new token (classic)
  • Select any Expiration and 'repo' (full control) scope
  1. Open the CMH tool:
  • Hit the 'Create local repo!' button
  • Select 'Randomize...' if you want random number of commits per day
    (this will result in a more natural look in your commiting pattern)
  • Select the dates
  • Provide the necessary Github repo address, email1 and token2
  • Hit the 'Fill Github commit map!' button
  1. DONE!

Notes

1 The email address is mandatory, as only those commits that have an associated email address linked to your GitHub.com account will appear on your contributions graph. Read details here.

2 Token-based authentication has succeeded email and password-based authentication, as described in the Github blog. On August 13, 2021, the blog stated that developers who currently use a password to authenticate Git operations with GitHub.com must begin using a personal access token. Read details here.

The FlatBee UI CSS theme used in the tool was designed by Marc Schuler.