Created
October 13, 2014 20:01
-
-
Save jerico/6687a9676dedd47698a7 to your computer and use it in GitHub Desktop.
Create bitbucket repos in command line with prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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