{"id":46199372,"url":"https://github.com/sgaunet/gitcommit","last_synced_at":"2026-03-03T04:37:30.658Z","repository":{"id":324183166,"uuid":"1096020772","full_name":"sgaunet/gitcommit","owner":"sgaunet","description":"CLI tool to create Git commits with custom historical dates while maintaining chronological integrity","archived":false,"fork":false,"pushed_at":"2025-11-14T08:46:06.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-14T09:26:38.707Z","etag":null,"topics":["cli","cli-app","commit-history","datetime","developer-tools","git","git-commit","git-tool","go","golang","version-control"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgaunet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["sgaunet"]}},"created_at":"2025-11-13T20:44:44.000Z","updated_at":"2025-11-14T08:46:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sgaunet/gitcommit","commit_stats":null,"previous_names":["sgaunet/gitcommit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sgaunet/gitcommit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitcommit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitcommit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitcommit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitcommit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgaunet","download_url":"https://codeload.github.com/sgaunet/gitcommit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitcommit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30032037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T03:27:35.548Z","status":"ssl_error","status_checked_at":"2026-03-03T03:27:09.213Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-app","commit-history","datetime","developer-tools","git","git-commit","git-tool","go","golang","version-control"],"created_at":"2026-03-03T04:37:30.078Z","updated_at":"2026-03-03T04:37:30.636Z","avatar_url":"https://github.com/sgaunet.png","language":"Go","readme":"# gitcommit - Git Commit Date Setter\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/sgaunet/gitcommit)](https://goreportcard.com/report/github.com/sgaunet/gitcommit)\n[![GitHub release](https://img.shields.io/github/release/sgaunet/gitcommit.svg)](https://github.com/sgaunet/gitcommit/releases/latest)\n![GitHub Downloads](https://img.shields.io/github/downloads/sgaunet/gitcommit/total)\n![Coverage Badge](https://raw.githubusercontent.com/wiki/sgaunet/gitcommit/coverage-badge.svg)\n[![linter](https://github.com/sgaunet/gitcommit/actions/workflows/coverage.yml/badge.svg)](https://github.com/sgaunet/gitcommit/actions/workflows/coverage.yml)\n[![coverage](https://github.com/sgaunet/gitcommit/actions/workflows/coverage.yml/badge.svg)](https://github.com/sgaunet/gitcommit/actions/workflows/coverage.yml)\n[![Snapshot Build](https://github.com/sgaunet/gitcommit/actions/workflows/snapshot.yml/badge.svg)](https://github.com/sgaunet/gitcommit/actions/workflows/snapshot.yml)\n[![Release Build](https://github.com/sgaunet/gitcommit/actions/workflows/release.yml/badge.svg)](https://github.com/sgaunet/gitcommit/actions/workflows/release.yml)\n[![License](https://img.shields.io/github/license/sgaunet/gitcommit.svg)](LICENSE)\n\nA command-line tool that enables developers to create Git commits with specific historical dates while maintaining chronological integrity.\n\n## Features\n\n- ✨ Create commits with custom dates in format `YYYY-MM-DD HH:MM:SS`\n- 🔒 Validates dates maintain chronological order (no backdating before last commit)\n- 🌍 Automatic local timezone detection\n- 🚀 Fast and lightweight (Go stdlib only, no external dependencies)\n- 📝 Clear, actionable error messages\n- ✅ POSIX-compliant CLI interface (`--help`, `--version`)\n\n## Installation\n\n### From Source\n\n```bash\ngit clone https://github.com/sgaunet/gitcommit.git\ncd gitcommit\nmake install\n```\n\n### Verify Installation\n\n```bash\ngitcommit --version\n```\n\n## Quick Start\n\n```bash\n# Stage your changes\ngit add .\n\n# Create commit with custom date\ngitcommit \"2025-02-05 20:19:19\" \"Historical commit message\"\n```\n\n## Usage\n\n```bash\ngitcommit \u003cdate\u003e \u003cmessage\u003e\n```\n\n**Arguments:**\n- `\u003cdate\u003e`: Date and time in format `YYYY-MM-DD HH:MM:SS`\n- `\u003cmessage\u003e`: Commit message text\n\n**Flags:**\n- `--help, -h`: Show usage information\n- `--version, -v`: Show version number\n\n## Examples\n\n```bash\n# Basic usage\ngitcommit \"2025-02-05 20:19:19\" \"Add feature X\"\n\n# Backdating offline work\ngitcommit \"2025-01-15 10:00:00\" \"Work done offline\"\n\n# First commit in new repository\ngit init\ngit add README.md\ngitcommit \"2025-01-01 00:00:00\" \"Initial commit\"\n```\n\n## Requirements\n\n- **Go**: 1.21 or later (for building)\n- **Git**: 2.20 or later\n- **Platforms**: Linux, macOS, Windows\n\n## Date Format Rules\n\n- ✅ Format: `YYYY-MM-DD HH:MM:SS` (24-hour time)\n- ✅ Date must be after the last commit in the repository\n- ✅ Future dates are allowed\n- ✅ Empty repositories accept any date\n- ❌ Dates equal to or before the last commit are rejected\n\n## Development\n\n```bash\n# Build\nmake build\n\n# Run tests\nmake test\n\n# Run linter\nmake lint\n\n# Format code\nmake fmt\n\n# View all commands\nmake help\n```\n\n## Testing\n\n```bash\n# Run all tests with coverage\nmake coverage\n\n# Run specific test\ngo test -v ./internal/datetime/...\n```\n\n## Architecture\n\n```\ncmd/gitcommit/          # CLI entry point\ninternal/\n  ├── cli/              # CLI logic and orchestration\n  ├── datetime/         # Date parsing, validation, formatting\n  └── git/              # Git repository operations\ntests/\n  ├── integration/      # Integration tests\n  └── testdata/         # Test fixtures\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes\n4. Push to the branch\n5. Open a Pull Request\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## Use Cases\n\n- 📅 Organizing repository history chronologically\n- 💼 Backdating work done offline\n- 🔄 Migrating commits from other version control systems\n- 📊 Maintaining accurate project timelines\n\n## Troubleshooting\n\n**Error: \"Invalid date format\"**\n- Use exact format: `YYYY-MM-DD HH:MM:SS`\n- Example: `2025-02-05 20:19:19`\n\n**Error: \"Chronology violation\"**\n- Ensure date is after your last commit\n- Check: `git log -1 --format=\"%aI\"`\n\n**Error: \"Not a Git repository\"**\n- Run from inside a Git repository\n- Or initialize: `git init`\n\n## Performance\n\n- Date parsing \u0026 validation: \u003c10ms\n- Git operations: \u003c100ms\n- Total operation: \u003c200ms (p95)\n\n## Credits\n\nBuilt with ❤️ using Go standard library only.\n\n---\n\n**Version**: 1.0.0\n**Status**: Production Ready\n","funding_links":["https://github.com/sponsors/sgaunet"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fgitcommit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgaunet%2Fgitcommit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fgitcommit/lists"}