{"id":15008040,"url":"https://github.com/kei-k23/rgit","last_synced_at":"2026-02-03T03:35:19.181Z","repository":{"id":256777751,"uuid":"856379115","full_name":"Kei-K23/rgit","owner":"Kei-K23","description":"Git implementation in Rust from scratch.","archived":false,"fork":false,"pushed_at":"2024-09-16T11:35:29.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T15:46:36.653Z","etag":null,"topics":["git","rust","version-control"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Kei-K23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-09-12T13:36:27.000Z","updated_at":"2024-09-18T01:06:07.000Z","dependencies_parsed_at":"2024-10-12T08:31:23.958Z","dependency_job_id":null,"html_url":"https://github.com/Kei-K23/rgit","commit_stats":null,"previous_names":["kei-k23/rgit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kei-K23/rgit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Frgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Frgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Frgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Frgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kei-K23","download_url":"https://codeload.github.com/Kei-K23/rgit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Frgit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263287827,"owners_count":23443080,"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":["git","rust","version-control"],"created_at":"2024-09-24T19:14:51.808Z","updated_at":"2026-02-03T03:35:19.153Z","avatar_url":"https://github.com/Kei-K23.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rgit\n\n**Rgit** is a simplified Git implementation written in **Rust**. It replicates key features of Git, such as **creating repositories**, **adding files**, **committing changes**, and working with **branches**, **tags**, and **remotes**.\n\n## Features\n\n- Initialize a new Git repository or reinitialize an existing one (`init`)\n- Add files to the staging area (`add`)\n- Commit changes to the repository (`commit`)\n- Check the status of your working directory (`status`)\n- Show commit history (`log`)\n- Create, list, or delete branches (`branch`)\n- Checkout to different branches or commits (`checkout`)\n- Create, list, or delete tags (`tag`)\n- Compare changes between commits or working tree (`diff`)\n- Manage repository configuration (`config`)\n- Manage remote repositories (`remote`)\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/Kei-K23/rgit.git\n```\n\n2. Navigate to the project directory:\n\n```bash\ncd rgit\n```\n\n3. Build the project:\n\n```bash\ncargo build --release\n```\n\n4. Run the rgit binary:\n\n```bash\n./target/release/rgit\n```\n\n## Usage\n\nYou can interact with rgit through various subcommands. Here are some examples:\n\n### Initialize a Repository\n\n```bash\n./target/release/rgit init\n```\n\nThis will create an empty Git repository or reinitialize an existing one.\n\n### Add Files\n\n```bash\n./target/release/rgit add \u003cfile\u003e\n```\n\nStage file contents to the index.\n\n### Commit Changes\n\n```bash\n./target/release/rgit commit -m \"Your commit message\"\n```\n\nRecord changes to the repository with a message.\n\n### Check Repository Status\n\n```bash\n./target/release/rgit status\n```\n\nDisplay the current state of the working directory and staging area.\n\n### View Commit Log\n\n```bash\n./target/release/rgit log\n```\n\nShow the commit history of the repository.\n\n### Create a New Branch\n\n```bash\n./target/release/rgit branch \u003cbranch_name\u003e\n```\n\nCreate a new branch.\n\n### Checkout a Branch or Commit\n\n```bash\n./target/release/rgit checkout \u003cbranch_name|commit_hash\u003e\n```\n\nSwitch to another branch or checkout a specific commit.\n\n### Tag Management\n\n#### Create a new tag:\n\n```bash\n./target/release/rgit tag \u003ctag_name\u003e\n```\n\n#### List all tags:\n\n```bash\n./target/release/rgit tag\n```\n\n#### Delete a tag:\n\n```bash\n./target/release/rgit tag -d \u003ctag_name\u003e\n```\n\n### Compare Changes\n\n```bash\n./target/release/rgit diff\n```\n\nShow changes between the working directory, staged changes, and commit history.\n\n### Configure Repository\n\n#### Set a configuration value:\n\n```bash\nrgit config set \u003ckey\u003e \u003cvalue\u003e\n```\n\n#### Get a configuration value:\n\n```bash\nrgit config get \u003ckey\u003e\n```\n\n### Manage Remotes\n\n#### Add a new remote:\n\n```bash\nrgit remote add \u003cname\u003e \u003curl\u003e\n```\n\n#### Remove a remote:\n\n```bash\nrgit remote remove \u003cname\u003e\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Frgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkei-k23%2Frgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Frgit/lists"}