@aniya.jaskolski
To add an existing non-git project to Bitbucket, you will first need to initialize a new git repository in the project's directory. Here’s how you can do this:
- Navigate to the root directory of your project in your terminal.
- Run the following command to initialize a new git repository:
git init
- Add all the files in the project to the staging area by running the following command:
git add .
- Commit the files to the git repository with a meaningful message:
git commit -m "Initial commit"
- Next, create a new repository on Bitbucket by going to your Bitbucket account and clicking on the "Create repository" button.
- Copy the URL of the Bitbucket repository that you just created.
- Link your local git repository to the Bitbucket repository by running the following command:
git remote add origin
- Push your local repository to the Bitbucket repository by running the following command:
git push -u origin master
This will push your local repository to the Bitbucket repository, and you should now see your project files in your Bitbucket repository.
That’s it! Your existing non-git project should now be added to Bitbucket.