Skip to content

mawsyh/commiter

Repository files navigation

<<<<<<< HEAD

Commiter

Commit on any date you desire

image

Generate a personal access token on GitHub and copy it. (need public repo access.)

Usage

To start the script clone the project

git clone [email protected]:mawsyh/commiter.git

execute the following command in your terminal:

node commiter.js

You will be prompted to enter your GitHub credentials and desired date range: GitHub username GitHub access token Repository name (make sure the repository already exists on your GitHub account) Start date (in YYYY-MM-DD format) End date (in YYYY-MM-DD format)

Inspired by antfu's 1990-script

Explanations

This project works on the way git records commit. Whenever you commit something, git puts an Unix Timestamp on it to record when you committed it. An Unix Timestamp is the way computers store the current time. An Unix timestamp is a 32-bit number which stores the number of seconds that has passed from January 1st, 1970 at UTC, the Unix Epoch.

How to get access token

Select the repository you want to commit on image

Only Contents access is needed here image

Copy the created access token image

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

ui