Skip to content

mawsyh/commiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published