{"id":18045197,"url":"https://github.com/abusch/codecrafters-git-rust","last_synced_at":"2026-05-18T19:33:27.237Z","repository":{"id":205088184,"uuid":"713286917","full_name":"abusch/codecrafters-git-rust","owner":"abusch","description":"My solution to the \"create your own git\" challenge on CodeCrafters","archived":false,"fork":false,"pushed_at":"2023-11-02T12:50:31.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T11:48:15.668Z","etag":null,"topics":["codecrafters","git","rust"],"latest_commit_sha":null,"homepage":"https://codecrafters.io/challenges/git","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abusch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-02T08:07:23.000Z","updated_at":"2023-11-02T08:11:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bdc3680-ba4c-4706-bb65-6977e6e040ec","html_url":"https://github.com/abusch/codecrafters-git-rust","commit_stats":null,"previous_names":["abusch/codecrafters-git-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abusch%2Fcodecrafters-git-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abusch%2Fcodecrafters-git-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abusch%2Fcodecrafters-git-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abusch%2Fcodecrafters-git-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abusch","download_url":"https://codeload.github.com/abusch/codecrafters-git-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284913,"owners_count":20913691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["codecrafters","git","rust"],"created_at":"2024-10-30T18:12:20.566Z","updated_at":"2026-05-18T19:33:22.213Z","avatar_url":"https://github.com/abusch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://backend.codecrafters.io/progress/git/a5c2d4af-2f96-4470-935e-a293b696b72e)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)\n\nThis is a starting point for Rust solutions to the\n[\"Build Your Own Git\" Challenge](https://codecrafters.io/challenges/git).\n\nIn this challenge, you'll build a small Git implementation that's capable of\ninitializing a repository, creating commits and cloning a public repository.\nAlong the way we'll learn about the `.git` directory, Git objects (blobs,\ncommits, trees etc.), Git's transfer protocols and more.\n\n**Note**: If you're viewing this repo on GitHub, head over to\n[codecrafters.io](https://codecrafters.io) to try the challenge.\n\n# Passing the first stage\n\nThe entry point for your Git implementation is in `src/main.rs`. Study and\nuncomment the relevant code, and push your changes to pass the first stage:\n\n```sh\ngit add .\ngit commit -m \"pass 1st stage\" # any msg\ngit push origin master\n```\n\nThat's all!\n\n# Stage 2 \u0026 beyond\n\nNote: This section is for stages 2 and beyond.\n\n1. Ensure you have `cargo (1.54)` installed locally\n1. Run `./your_git.sh` to run your Git implementation, which is implemented in\n   `src/main.rs`. This command compiles your Rust project, so it might be slow\n   the first time you run it. Subsequent runs will be fast.\n1. Commit your changes and run `git push origin master` to submit your solution\n   to CodeCrafters. Test output will be streamed to your terminal.\n\n# Testing locally\n\nThe `your_git.sh` script is expected to operate on the `.git` folder inside the\ncurrent working directory. If you're running this inside the root of this\nrepository, you might end up accidentally damaging your repository's `.git`\nfolder.\n\nWe suggest executing `your_git.sh` in a different folder when testing locally.\nFor example:\n\n```sh\nmkdir -p /tmp/testing \u0026\u0026 cd /tmp/testing\n/path/to/your/repo/your_git.sh init\n```\n\nTo make this easier to type out, you could add a\n[shell alias](https://shapeshed.com/unix-alias/):\n\n```sh\nalias mygit=/path/to/your/repo/your_git.sh\n\nmkdir -p /tmp/testing \u0026\u0026 cd /tmp/testing\nmygit init\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabusch%2Fcodecrafters-git-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabusch%2Fcodecrafters-git-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabusch%2Fcodecrafters-git-rust/lists"}