{"id":29290996,"url":"https://github.com/hatixntsoa/source_controller","last_synced_at":"2025-07-06T07:12:22.499Z","repository":{"id":257764001,"uuid":"859261899","full_name":"hatixntsoa/source_controller","owner":"hatixntsoa","description":"Simple Git \u0026 GitHub CLI Shell Scripts","archived":false,"fork":false,"pushed_at":"2025-06-29T12:52:55.000Z","size":164,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T13:43:21.079Z","etag":null,"topics":["git","github","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hatixntsoa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-09-18T11:16:16.000Z","updated_at":"2025-06-29T12:52:58.000Z","dependencies_parsed_at":"2024-12-16T13:23:43.914Z","dependency_job_id":"55457678-2783-40e0-897f-0e29fa04eaae","html_url":"https://github.com/hatixntsoa/source_controller","commit_stats":null,"previous_names":["h471x/git_gh","h471x/source_controller","hatixntsoa/source_controller"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hatixntsoa/source_controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatixntsoa%2Fsource_controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatixntsoa%2Fsource_controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatixntsoa%2Fsource_controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatixntsoa%2Fsource_controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatixntsoa","download_url":"https://codeload.github.com/hatixntsoa/source_controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatixntsoa%2Fsource_controller/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263862009,"owners_count":23521361,"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","github","shell-script"],"created_at":"2025-07-06T07:12:16.769Z","updated_at":"2025-07-06T07:12:22.486Z","avatar_url":"https://github.com/hatixntsoa.png","language":"Shell","readme":"## Simple Git \u0026 GitHub Shell Scripts\n\n### Description\nThese shell scripts are crafted to enhance and streamline your `Git` and `GitHub CLI` workflows.  \nBy leveraging the **GitHub API**, they allow you to perform ``essential GitHub operations directly from the terminal``.  \n  \nWhether you need to `create`, `delete`, `change visibility`, or `manage collaborators`  \nfor your GitHub repositories, these scripts enable you to do so efficiently  \n``without ever leaving the command line``.\n\n### Prerequisites\n- **Packages**: Ensure `git` and `gh` are installed and properly configured.\n  - **GitHub CLI Guide**: [Gh Config](config/gh_config.md)\n  - **Git Guide**: [Git Config](config/git_config.md)\n- **Font**: `Nerd Font` is recommended for optimal display.\n\n### Scripts Installation (Local)\n\n1. **Clone the repository**\n  ```sh\n  git clone https://github.com/hatixntsoa/source_controller.git\n  ```\n2. **Navigate to the directory**\n  ```sh\n  cd git_gh\n  ```\n3. **Set execution permissions**\n  ```sh\n  chmod u+x {gh_scripts/*,git_scripts/*,setup/*}\n  ```\n4. **Run the installation script**\n  ```sh\n  ./setup/install.sh\n  ```\n\n### Usages\n\nOnce the scripts are installed, you can check for them by running:\n```sh\nls -l $(whereis sh | grep -o '/[^ ]*/bin' | head -n 1) | grep 'git_gh' | awk '{print $NF}' | xargs -n 1 basename | sed 's/\\.sh$//'\n```\n\n- **gh Scripts** : GitHub operations management\n\n| **Name** | **Usage** |\n|----------|-----------|\n| `ghc`    | Create a new repository |\n| `ghf`    | Fork a repository |\n| `ghd`    | Delete an existing repository |\n| `ghv`    | View and toggle an existing repository's visibility |\n| `gck`    | Create a new branch locally and remotely |\n| `gcln`   | Clone a repository |\n| `gbd`    | Delete an existing branch locally and remotely |\n| `ghadd`  | Add a new collaborator to the repository by username |\n| `ghdel`  | Remove an existing collaborator from the repository by username |\n| `ghcls`  | List all collaborators for the repository by usernames |\n\n- **git Scripts** : common git operations (optional)\n\n| **Name** | **Usage** |\n|----------|-----------|\n| `gad`    | Add and Commit changes |\n| `gcb`    | Switch to the previously checked-out branch |\n| `gdf`    | Short for git diff |\n| `glc`    | Display the number of commits with last messages made by the current user |\n| `gmb`    | Merge the specified branch into the current branch |\n| `gnm`    | Rename the current branch |\n| `gpsh`   | Push local commits to its remote |\n| `gpl`    | Pull remote commits to local |\n| `gst`    | Short for git status -s |\n| `grst`   | Restore changes made |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatixntsoa%2Fsource_controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatixntsoa%2Fsource_controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatixntsoa%2Fsource_controller/lists"}