Files
dot/scripts/fillbucket
Martin Pander 03c7bc3c59 Initial commit
2020-09-10 09:54:18 +02:00

19 lines
385 B
Bash
Executable File

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