I have a project with a git repository and the history intact in my local folder. I want to upload this project along with the git repo into the bitbucket server. But I don't want to create the repo in the bitbucket manually. Can I follow the below steps to automatically create repos in bitbucket:
git remote add origin https://User@bitbucket.ad.local/scm/proj1/repos1.git
(bitbucket server url without creating repos)
git clone C:\repos1.get https://User@bitbucket.ad.local/scm/proj1/repos1.git
(cloning the BB repo to my local)
unzip my project folder into this location
git add
git push -u origin master
These are the steps. Will these steps automatically create a repo in BB? I am aware of using API to create repo. But wondering if these 'reverse' steps will work.