Today I needed to import an existing project to Bitbucket. The documentation is really good, but just in case you have trouble finding it:
- Navigate to the root directory of your project.
- Run the following commands in terminal/command prompt:
git add –all
git commit -m “Initial Commit”
- Login to Bitbucket and create repository.
- Locate the clone URL (left menu) e.g. https://email_address.bitbucket.domain:7999/project_name/repo.git
- Upload your files:
git remote add origin https://email_address.bitbucket.domain:7999/project_name/repo.git
git push -u origin master
Check out the following link for more info: https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html
Leave a Reply