https://github.com/doarakko/git-first-commit
Find the first commit of any GitHub repository.
https://github.com/doarakko/git-first-commit
git github oss
Last synced: 2 months ago
JSON representation
Find the first commit of any GitHub repository.
- Host: GitHub
- URL: https://github.com/doarakko/git-first-commit
- Owner: Doarakko
- License: mit
- Created: 2024-12-22T12:41:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-14T13:32:01.000Z (3 months ago)
- Last Synced: 2026-03-14T21:47:50.155Z (3 months ago)
- Topics: git, github, oss
- Language: TypeScript
- Homepage: https://git-first-commit.2wua4nlyi4102.workers.dev/
- Size: 927 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# git-first-commit
Find the first commit of any GitHub repository.
## Requirements
- npm
- GitHub API token
## Usage
```sh
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 dev
```
## Hints
### Delete repository with commits
```sh
npx wrangler d1 execute git-first-commit --local --command "
DELETE FROM commits
WHERE repository_id = (
SELECT id FROM repositories
WHERE username = ''
AND name = ''
);
DELETE FROM repositories
WHERE username = ''
AND name = ''
;
"
```