Skip to content

Instantly share code, notes, and snippets.

@jerico
Created October 13, 2014 20:01
Show Gist options
  • Save jerico/6687a9676dedd47698a7 to your computer and use it in GitHub Desktop.
Save jerico/6687a9676dedd47698a7 to your computer and use it in GitHub Desktop.
Create bitbucket repos in command line with prompt
@echo off
echo "Enter Username"
set /p Username=
echo "Password"
set /p Password=
echo "Repository Name"
set /p RepoName=
curl --user %Username%:%Password% https://api.bitbucket.org/1.0/repositories/ --data name=%RepoName% --data is_private='true'
git remote add origin git@bitbucket.com:%Username%/%RepoName%.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment