Initial commit
This commit is contained in:
18
scripts/fillbucket
Executable file
18
scripts/fillbucket
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
username="mustachiod"
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
reponame=$1
|
||||
else
|
||||
echo "Repo name"
|
||||
read reponame
|
||||
fi
|
||||
|
||||
echo "Password"
|
||||
read -s password
|
||||
|
||||
curl --user $username:$password https://api.bitbucket.org/1.0/repositories/ --data name=$reponame --data is_private='true'
|
||||
git remote add origin git@bitbucket.org:$username/$reponame.git
|
||||
git push -u origin --all
|
||||
git push -u origin --tags
|
||||
Reference in New Issue
Block a user