{"id":22358950,"url":"https://github.com/semihbkgr/codecrafters-git-go","last_synced_at":"2025-03-26T13:44:45.489Z","repository":{"id":235718182,"uuid":"773194581","full_name":"semihbkgr/codecrafters-git-go","owner":"semihbkgr","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-17T01:36:41.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T15:18:47.270Z","etag":null,"topics":["build-your-own-x","codecrafters","git","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/semihbkgr.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-17T01:36:30.000Z","updated_at":"2024-03-17T14:02:15.000Z","dependencies_parsed_at":"2024-04-24T11:45:35.096Z","dependency_job_id":"d0809fcd-efa5-47f3-8a47-7637b3b8742b","html_url":"https://github.com/semihbkgr/codecrafters-git-go","commit_stats":null,"previous_names":["semihbkgr/codecrafters-git-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihbkgr%2Fcodecrafters-git-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihbkgr%2Fcodecrafters-git-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihbkgr%2Fcodecrafters-git-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semihbkgr%2Fcodecrafters-git-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semihbkgr","download_url":"https://codeload.github.com/semihbkgr/codecrafters-git-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245667749,"owners_count":20652983,"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":["build-your-own-x","codecrafters","git","golang"],"created_at":"2024-12-04T15:18:24.846Z","updated_at":"2025-03-26T13:44:45.469Z","avatar_url":"https://github.com/semihbkgr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://backend.codecrafters.io/progress/git/94cc2980-737d-43aa-a080-1fe03ca54781)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)\n\nThis is a starting point for Go 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 `cmd/mygit/main.go`. 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 `go` installed locally\n1. Run `./your_git.sh` to run your Git implementation, which is implemented in\n   `cmd/mygit/main.go`.\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%2Fsemihbkgr%2Fcodecrafters-git-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemihbkgr%2Fcodecrafters-git-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemihbkgr%2Fcodecrafters-git-go/lists"}