{"id":16742244,"url":"https://github.com/oscarmorrison/newbitbucketrepo","last_synced_at":"2025-03-16T00:20:37.279Z","repository":{"id":19622169,"uuid":"22873830","full_name":"oscarmorrison/newBitBucketRepo","owner":"oscarmorrison","description":"Forked from https://bitbucket.org/hannesr/fillbucket/overview  newGit is a way to create a new repo using the bitbucket curl api from the command line","archived":false,"fork":false,"pushed_at":"2016-05-24T21:05:52.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T13:16:47.534Z","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}},"created_at":"2014-08-12T10:40:33.000Z","updated_at":"2023-04-27T00:03:22.000Z","dependencies_parsed_at":"2022-07-23T13:16:16.565Z","dependency_job_id":null,"html_url":"https://github.com/oscarmorrison/newBitBucketRepo","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%2FnewBitBucketRepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarmorrison%2FnewBitBucketRepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarmorrison%2FnewBitBucketRepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarmorrison%2FnewBitBucketRepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscarmorrison","download_url":"https://codeload.github.com/oscarmorrison/newBitBucketRepo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243807412,"owners_count":20350992,"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.875Z","updated_at":"2025-03-16T00:20:37.247Z","avatar_url":"https://github.com/oscarmorrison.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#newGit\r\nis a way to create a new repo using the *bitbucket* curl api from the command line\r\nif you would like to create github repo from CLI see: [githubNewGit](https://github.com/oscarmorrison/newGithubRepo/)\r\n\r\n## Instructions ##\r\n\r\nTo use this script add to a folder in your path. I have a folder called '''.scripts''' in my home directory,\r\nthat I have added to 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 git@github.com:oscarmorrison/newBitBucketRepo.git\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 = \"YOURBITBUCKETUSERNAME\"\r\nPASSWORD = \"YOURBITBUCKETPASSWORD\"\r\nto your bitbucket username and password\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\r\n-----------\r\n\r\nForked from https://bitbucket.org/hannesr/fillbucket/overview\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarmorrison%2Fnewbitbucketrepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscarmorrison%2Fnewbitbucketrepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarmorrison%2Fnewbitbucketrepo/lists"}