{"id":18081522,"url":"https://github.com/cosmicwanderer7/mkgit","last_synced_at":"2025-04-12T15:00:24.125Z","repository":{"id":208744464,"uuid":"722386951","full_name":"cosmicwanderer7/mkgit","owner":"cosmicwanderer7","description":"This Bash script automates the process of creating a new GitHub repository, initializing it with a README file, and pushing the initial commit to the remote repository. The script prompts the user for a repository name and utilizes the GitHub API to create a new public repository.","archived":false,"fork":false,"pushed_at":"2024-02-26T15:20:17.000Z","size":66,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T09:40:02.700Z","etag":null,"topics":["bash","bash-script","github","github-script","linux"],"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/cosmicwanderer7.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":"2023-11-23T03:15:50.000Z","updated_at":"2025-02-01T19:00:55.000Z","dependencies_parsed_at":"2023-11-23T04:34:47.571Z","dependency_job_id":"3d55f509-6fb0-47f7-8227-208a1886bf71","html_url":"https://github.com/cosmicwanderer7/mkgit","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":0.5294117647058824,"last_synced_commit":"751eaa4c985ea50b119dece127c0fd595531cd5b"},"previous_names":["cosmicwanderer7/github-script","cosmicwanderer7/mkgit"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicwanderer7%2Fmkgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicwanderer7%2Fmkgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicwanderer7%2Fmkgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicwanderer7%2Fmkgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmicwanderer7","download_url":"https://codeload.github.com/cosmicwanderer7/mkgit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586249,"owners_count":21128997,"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":["bash","bash-script","github","github-script","linux"],"created_at":"2024-10-31T13:15:08.274Z","updated_at":"2025-04-12T15:00:24.091Z","avatar_url":"https://github.com/cosmicwanderer7.png","language":"Shell","funding_links":[],"categories":["\u003ca name=\"git\"\u003e\u003c/a\u003eGit and accessories"],"sub_categories":[],"readme":"# Automate GitHub Repository Initialization with Bash\n\nhttps://github.com/cosmicwanderer7/github-script/assets/65147258/25a6293a-f326-484e-afc9-fa08b8016ba1\n\nThis Bash script automates the process of creating a new GitHub repository, initializing it with a README file, and pushing the initial commit to the remote repository. The script prompts the user for a repository name and utilizes the GitHub API to create a new public repository.\n\n## Prerequisites\n\nBefore using this script, make sure you have the following:\n\n- GitHub account\n- GitHub username\n- [GitHub personal access token with repo scope](https://docs.github.com/en/enterprise-server@3.9/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)\n\n## Installation Instructions (mkgit.bash)\n\n### Archlinux/Manjaro\n\n   ```yay -S mkgit```\n\n1.  Clone the repository to your local machine:\n\n    ```bash\n    git clone https://github.com/your-username/bash-github-repo-creator.git\n    ```\n\n2.  Navigate to the cloned directory:\n\n    ```bash\n    cd bash-github-repo-creator\n    ```\n\n3.  Make the script executable:\n\n    ```bash\n    chmod +x mkgit.bash\n    ```\n\n4.  Execute the script\n\n    ```bash\n    ./mkgit.bash [-d] [-i] [-l] [-h]\n    ```\n\n    ###Flags\n\n    -d: Delete the configuration file and exit.\n    -i: Initialize a Git repository in the current directory.\n    -l: Prompt for license selection.\n    -h: Display the help message.\n\n    Runing script without any flags makes new repo without licence at $HOME/Documents/Projects\n\n5.  The first time you use the script, it will prompt you to enter your GitHub credentials. These credentials will be saved in a configuration file for further use.\n\n6.  To run the script globally.\n\n    copy the script to `/usr/local/bin`\n\n    you can create a alias\n\n    ```\n    alias mkgit='mkgit.bash'\n    ```\n\n7.  The script will create a new directory with the given repository name, initialize a Git repository, create an initial commit with a README file, and push it to the newly created GitHub repository.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. Make sure to follow the contribution guidelines.\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`).\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`).\n4. Push to the branch (`git push origin feature/AmazingFeature`).\n5. Open a pull request.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicwanderer7%2Fmkgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmicwanderer7%2Fmkgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicwanderer7%2Fmkgit/lists"}