#!/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
