{"id":16742242,"url":"https://github.com/oscarmorrison/newgithubrepo","last_synced_at":"2025-07-25T00:08:42.846Z","repository":{"id":71204174,"uuid":"59608265","full_name":"oscarmorrison/newGithubRepo","owner":"oscarmorrison","description":"newGit, create a repo from the CLI","archived":false,"fork":false,"pushed_at":"2016-05-26T12:04:02.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T13:18:07.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/oscarmorrison.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":"2016-05-24T20:58:59.000Z","updated_at":"2019-03-26T18:15:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"249a63be-1b65-4ed1-ac4b-eede082ce7f9","html_url":"https://github.com/oscarmorrison/newGithubRepo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarmorrison%2FnewGithubRepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarmorrison%2FnewGithubRepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarmorrison%2FnewGithubRepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarmorrison%2FnewGithubRepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscarmorrison","download_url":"https://codeload.github.com/oscarmorrison/newGithubRepo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243807657,"owners_count":20351039,"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":[],"created_at":"2024-10-13T01:23:07.620Z","updated_at":"2025-03-16T00:22:17.432Z","avatar_url":"https://github.com/oscarmorrison.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#newGit (github)\r\nis a way to create a new repo using the *github* curl api from the command line  \r\nif you would like to create bitbucket repo from CLI see: [bitbucketNewGit](https://github.com/oscarmorrison/newBitBucketRepo)  \r\n\r\n\r\n## Instructions ##\r\n\r\nTo use this script, add it to a folder in your path. I have a folder called '''.scripts''' in my home directory,\r\n(that is on my path).\r\n\r\nTo do this \r\n\r\n```\r\ncd ~\r\nmkdir .scripts\r\nvim bash_profile\r\n```\r\n\r\nthen add \r\n```\r\nPATH=\"PATH=$PATH:$HOME/.scripts\" \r\nexport PATH\r\n```\r\nYou then need to refresh your profile\r\nYou can do this by typing\r\n```\r\nsource .bash_profile\r\n```\r\nnow just clone repo \r\n```\r\ngit clone https://github.com/oscarmorrison/newGithubRepo.git\r\n```\r\nto your new scripts directory\r\nnow you need to make executable\r\n```\r\nchmod 775 newGit\r\n```\r\n\r\nnow edit newGit\r\n```\r\nvim newGit\r\n````\r\nand change  \r\nUSERNAME = \"YOURGITHUBUSERNAME\"  \r\nPASSWORD = \"YOURPERSONALACCESSTOKEN\"  \r\nto your github username and personal token\r\n*Can get a Personal Access token from https://github.com/settings/tokens*\r\n\r\nWhen you are in a directory that you want to upload to bitbucket in a new repo\r\njust type \r\n\r\n```\r\nnewGit\r\n```\r\n\r\nadd it will initialised directory as a git repo (locally),\r\nadd files, commit, and push to origin (remote)\r\n\r\n\r\nEnjoy!\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarmorrison%2Fnewgithubrepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscarmorrison%2Fnewgithubrepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarmorrison%2Fnewgithubrepo/lists"}