{"id":19715519,"url":"https://github.com/hudson-newey/2g","last_synced_at":"2025-02-27T16:44:28.994Z","repository":{"id":249478120,"uuid":"831601743","full_name":"hudson-newey/2g","owner":"hudson-newey","description":"A custom git wrapper that extends Git with some custom commands that I find useful (and improves performance)","archived":false,"fork":false,"pushed_at":"2024-09-03T12:40:56.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T00:53:53.014Z","etag":null,"topics":["cli","git"],"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/hudson-newey.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,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T04:05:37.000Z","updated_at":"2025-02-23T16:13:16.000Z","dependencies_parsed_at":"2024-07-21T07:43:57.922Z","dependency_job_id":"4d1b175b-03ee-4625-9851-5ba6276ef7c0","html_url":"https://github.com/hudson-newey/2g","commit_stats":null,"previous_names":["hudson-newey/2g"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hudson-newey%2F2g","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hudson-newey%2F2g/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hudson-newey%2F2g/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hudson-newey%2F2g/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hudson-newey","download_url":"https://codeload.github.com/hudson-newey/2g/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241036231,"owners_count":19898131,"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":["cli","git"],"created_at":"2024-11-11T22:38:35.401Z","updated_at":"2025-02-27T16:44:28.969Z","avatar_url":"https://github.com/hudson-newey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2g\n\n## Description\n\nA custom git wrapper that extends Git with some custom commands that I find\nuseful.\n\nAny commands that are not a custom command is automatically passed to Git.\nGit should have full functionality (including using vim to edit commit message).\n\n## Custom Commands\n\n- `2g explore \u003crepo.git\u003e`\n    Allows you to explore a Git repo without polluting your directories.\n\n- `2g install \u003crepo.git\u003e`\n    Clones a repository in `~/.local/bin` and adds the repository to your `PATH`\n    environment variable.\n    Note: You will have to reload your shell to use any programs/scripts that\n    were installed.\n\n- `2g clone-file \u003crepo.git\u003e/\u003cfile_path\u003e`\n    Similar to the patched clone command, using `clone-file` allows you to clone\n    a single file from a git repository. Without any Git history attached.\n\n- `2g cache-clone \u003crepo.git\u003e`\n    A more optimized version of `git clone` that will attempt to use a local\n    cache of the repository and update it instead of cloning an entire repo\n    from scratch.\n    Additionally, it will fetch git history in the background, meaning that you\n    will have access to all the repositories code, and (hopefully) by the time\n    that you push, all the git history will have been fetched.\n\n## Patched Commands\n\n- `2g clone \u003crepo.git\u003e/[file_path]`\n    By adding a file path to a clone command, you are able to clone a single\n    file from a git repository.\n    Warning: This file will not have any Git history attached to it because it\n    was not cloned as part of a repository.\n    Example: Clone the CUDA .gitignore file into your repository you would\n    run `2g clone https://github.com/github/gitignore/blob/main/CUDA.gitignore`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhudson-newey%2F2g","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhudson-newey%2F2g","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhudson-newey%2F2g/lists"}