Assuming you have Git installed on your local machine, then:
- Locally, change to the root directory of your existing source.
Initialize the project by running the following commands in the terminal:
git init git add --all git commit -m "Initial Commit"
- Log into Bitbucket and create a new repository.
- Locate the clone URL in the nav panel on the left (for example: https://username@your.bitbucket.domain:7999 /yourproject/repo.git).
Push your files to the repository by running the following commands in the terminal (change the URL accordingly):
git remote add origin https://username@your.bitbucket.domain:7999/yourproject/repo.git git push -u origin master
- Done! Your repository is now available in Bitbucket.
No comments:
Post a Comment