https://github.com/oscarmorrison/newbitbucketrepo
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
https://github.com/oscarmorrison/newbitbucketrepo
Last synced: over 1 year ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/oscarmorrison/newbitbucketrepo
- Owner: oscarmorrison
- Created: 2014-08-12T10:40:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T21:05:52.000Z (about 10 years ago)
- Last Synced: 2025-01-22T13:16:47.534Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#newGit
is a way to create a new repo using the *bitbucket* curl api from the command line
if you would like to create github repo from CLI see: [githubNewGit](https://github.com/oscarmorrison/newGithubRepo/)
## Instructions ##
To use this script add to a folder in your path. I have a folder called '''.scripts''' in my home directory,
that I have added to my path.
To do this
```
cd ~
mkdir .scripts
vim bash_profile
```
then add
```
PATH="PATH=$PATH:$HOME/.scripts"
export PATH
```
You then need to refresh your profile
You can do this by typing
```
source .bash_profile
```
now just clone repo git@github.com:oscarmorrison/newBitBucketRepo.git
to your new scripts directory
now you need to make executable
```
chmod 775 newGit
```
now edit newGit
```
vim newGit
````
and change
USERNAME = "YOURBITBUCKETUSERNAME"
PASSWORD = "YOURBITBUCKETPASSWORD"
to your bitbucket username and password
When you are in a directory that you want to upload to bitbucket in a new repo
just type
```
newGit
```
add it will initialised directory as a git repo (locally),
add files, commit, and push to origin (remote)
Enjoy!
-----------
Forked from https://bitbucket.org/hannesr/fillbucket/overview