Find the first commit of any GitHub repository.
- npm
- GitHub API token
git clone https://github.com/Doarakko/git-first-commit
cd git-first-commit
cp .env.local.example .env.local
npm i
npm run d1:execute
npm run devnpx wrangler d1 execute git-first-commit --local --command "
DELETE FROM commits
WHERE repository_id = (
SELECT id FROM repositories
WHERE username = '<username>'
AND name = '<repository>'
);
DELETE FROM repositories
WHERE username = '<username>'
AND name = '<repository>'
;
"