{"id":21253200,"url":"https://github.com/roger-takeshita/git-new","last_synced_at":"2026-04-09T18:02:25.699Z","repository":{"id":54848324,"uuid":"332299180","full_name":"Roger-Takeshita/git-new","owner":"Roger-Takeshita","description":"NPM Package - Easy way to create a repository (personal/organization) on GitHub (only) using the terminal.","archived":false,"fork":false,"pushed_at":"2024-02-06T04:35:12.000Z","size":106,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-23T12:09:05.308Z","etag":null,"topics":["cli","git","github","javascript","npm","npm-package","ssh-key","token"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/git-new","language":"JavaScript","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/Roger-Takeshita.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":"2021-01-23T20:13:22.000Z","updated_at":"2024-02-06T04:34:27.000Z","dependencies_parsed_at":"2024-10-07T05:40:32.490Z","dependency_job_id":null,"html_url":"https://github.com/Roger-Takeshita/git-new","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"0967d48754e4f48128589f5ff20f3c51e5cc8970"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roger-Takeshita%2Fgit-new","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roger-Takeshita%2Fgit-new/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roger-Takeshita%2Fgit-new/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roger-Takeshita%2Fgit-new/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Roger-Takeshita","download_url":"https://codeload.github.com/Roger-Takeshita/git-new/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690142,"owners_count":20331727,"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","github","javascript","npm","npm-package","ssh-key","token"],"created_at":"2024-11-21T03:50:45.974Z","updated_at":"2025-12-29T18:41:00.932Z","avatar_url":"https://github.com/Roger-Takeshita.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nCreates a new GitHub repository only using terminal.\n\n## What's the purpose?\n\nEasy way to create a new repository (personal/organization) on GitHub using only the terminal.\n\n## What does it do?\n\n1. Creates a new local folder\n2. Initialize a git repository (`git init`)\n3. Creates a `.gitignore` file (optional)\n4. Creates a `LiCENSE` file (optional)\n5. Creates a `README.md` file (optional)\n6. Creates a GitHub repository\n7. Pushes first commit to the `main` branch\n\n## Installation\n\n```Bash\n  npm install -g git-new\n```\n\n## How to use?\n\nOn your `terminal`:\n\n```Bash\n  git-new\n\n  # or\n  git-new \u003cyour_repo_name\u003e\n\n  # or\n  git-new \u003cyour_repo_name\u003e --private\n```\n\n- `Y/N` questions, if no answer is given, the default value is `True`\n- All the white spaces in repo's name will be replaced with `_` (e.g `your_repo_name`)\n\n## How to configure?\n\n**Single GitHub Account**\n\n- If you only have one account, you will need:\n  - Create a [Personal Access Token](https://github.com/settings/tokens)\n  - Add GitHub `account` and `token` to `.gitconfig` file\n\n**Multiple GitHub Accounts**\n\n- To use with multiple GitHub accounts, you will need:\n  - Create a new SSH key\n    - Config GitHub to use the new SSH public key\n    - Config ssh `config` file\n  - Create a [Personal Access Token](https://github.com/settings/tokens)\n    - Add new GitHub `account` and `token` to `.gitconfig` file\n\n### Single GitHub Account Config\n\n![](https://i.imgur.com/HJxQ9V3.png)\n\n![](https://i.imgur.com/1mMyXC6.png)\n\n**Personal Access Token**\n\n1. Create a GitHub [personal access token](https://github.com/settings/tokens)\n\n   ![](https://i.imgur.com/lfBfnut.png)\n\n2. Add your GitHub `account` and `token` to your `gitconfig` file\n\n   ```Bash\n     git config --global user.acc \"your_github_acc\"\n     git config --global user.token \"243f93cd40c14c9dd16e29bfff73b6aa5384285e\"\n   ```\n\n   - In `/Users/\u003cyour_username\u003e/.gitconfig`, you will have:\n\n     ```Bash\n       [user]\n           name = your_name\n           email = your_email@gmail.com\n           acc = your_github_acc\n           token = 243f93cd40c14c9dd16e29bfff73b6aa5384285e\n     ```\n\n### Multiple GitHub Accounts Config\n\n![](https://i.imgur.com/5qJrDF9.png)\n\n#### Create New SSH Key\n\n1. On `Terminal` generate a new SSH key\n\n   ```Bash\n     ssh-keygen -t rsa -C \"your_email@gmail.com\"\n     # Generating public/private rsa key pair.\n     # Enter file in which to save the key (/Users/\u003cyour_username\u003e/.ssh/id_rsa):\n     /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev\n     # Enter passphrase (empty for no passphrase):\n     your_password\n     # Enter same passphrase again:\n     your_password\n     # Your identification has been saved in /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev.\n     # Your public key has been saved in /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev.pub.\n     # The key fingerprint is:\n     # SHA256:I60nfahisdhfiahsidfhiasdifhiashyH4 your_email@gmail.com\n     # The key's randomart image is:\n     # +---[RSA 3072]----+\n     # |                 |\n     # |                 |\n     # |                .|\n     # |       .       ..|\n     # |      k S    oo1.|\n     # |     o +..  .d%+=|\n     # |. . . =.c+  .-+*.|\n     # | p D =a*+.o  o...|\n     # |...  +Ffff +*f   |\n     # +----[SHA256]-----+\n   ```\n\n2. Add SSH key to your second GitHub account\n\n   - Copy your new **public** SSH key (ends with `.pub`)\n\n     ```Bash\n       cat /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev.pub\n\n       # ssh-rsa AAAAB3Nzafskdlfajsdjflajsdlf ... /qUg/DM= your_email@gmail.com\n     ```\n\n   - On GitHub, go to `Settings`\n\n     ![](https://i.imgur.com/2QR3ZvM.png)\n\n   - Click on `SSH and GPG keys \u003e New SSH key`\n\n     ![](https://i.imgur.com/hFkYsiY.png)\n\n   - On `SSH keys / Add new` page\n\n     - Title: `add_a_title`\n     - Key: `paste your public key`\n     - Click on **Add SSH key**\n\n       ![](https://i.imgur.com/Lvsk3B8.png)\n\n3. Add New SSH Private Key To List\n\n   - Add the the new ssh key to your ssh list\n\n     ```Bash\n       ssh-add /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev\n\n       # Enter passphrase for /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev:\n       your_password\n\n       # Identity added: /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev (your_email@gmail.com)\n     ```\n\n4. Configure ssh `config` file\n\n   - In `/Users/\u003cyour_username\u003e/.ssh/config` (create a `config` if file doesn't exist)\n   - Add a new Host and point to your **private** SSH key (without the `.pub`)\n\n     ```Bash\n       Host your_unique_profile_name\n         UseKeychain yes\n         HostName github.com\n         User your_new_github_user\n         IdentityFile /Users/\u003cyour_username\u003e/.ssh/id_rsa_dev\n     ```\n\n#### Configure GitHub\n\nAdd a second profile (`user1`) to your `.gitconfig` file\n\n- the `user1` will the name of the profile\n  - the name of the profile has to start with `user` and followed by an unique `number` (eg. `user1`, `user2`...)\n- Create a [Personal Access Token](https://github.com/settings/tokens)\n- Add a new user to `.gitconfig` file\n\n  ```Bash\n    git config --global user1.name \"your_name\"\n    #                       ^\n    #                       └── user1 (user One)\n    git config --global user1.email \"your_second_email@gmail.com\"\n    #                       ^\n    #                       └── user1 (user One)\n    git config --global user1.acc \"your_second_github_acc\"\n    #                       ^\n    #                       └── user1 (user One)\n    git config --global user1.token \"243f93cd40c14c9dd16e29bfff73b6aa5384285e\"\n    #                       ^\n    #                       └── user1 (user One)\n  ```\n\nIn your `/Users/\u003cyour_username\u003e/.gitconfig`:\n\n```Bash\n  [user] # \u003c-------- Default profile\n      name = your_name\n      email = your_email@gmail.com\n      acc = your_github_acc\n      token = 243f93cd40c14c9dd16e29bfff73b6aa5384285e\n  [user1] # \u003c-------- New profile\n      name = your_name\n      email = your_second_email@gmail.com\n      acc = your_second_github_acc\n      token = 243f93cd40c14c9dd16e29bfff73b6aa5384285e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froger-takeshita%2Fgit-new","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froger-takeshita%2Fgit-new","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froger-takeshita%2Fgit-new/lists"}