How to add a new project to an existing Bitbucket repository |Video upload date:  · Duration: PT5M46S  · Language: EN

Step by step guide to add a new project folder to an existing Bitbucket repository using local git and Bitbucket web UI

What this guide covers

Yes you can shove a whole new project into an existing Bitbucket repository without breaking anything or triggering a production meltdown. This short tutorial walks you through cloning the repo with Git creating the folder adding files and pushing a branch so reviewers can do their thing with a pull request. If the command line is not your spirit animal there is also a web UI option.

Prerequisites

  • Git installed and configured with your user name and email
  • Access to the Bitbucket repository with push rights or a branch workflow
  • A local workspace ready for mild chaos

Steps

Clone the repository

Start by cloning so you are working on a local copy of the source tree. Use your real repository URL in place of the placeholder.

git clone REPO_URL
cd repo-name

Create the project folder and add files

Inside the cloned repo make a directory for the new project. Add your source files configs and any build scripts that belong there. Keep things tidy so future you does not curse present you.

mkdir new-project
# add files into new-project using your editor or copy commands

Stage commit and push

If your team uses a branch based workflow create a feature branch first to avoid touching mainline. Commit with a clear message that explains what you added and why. Ambiguous messages cause grief and bad PR titles.

git checkout -b feature/add-new-project
git add new-project
git commit -m "Add new project folder new-project"
git push origin feature/add-new-project

Create a pull request on Bitbucket

Open a pull request for review. Assign reviewers add a helpful description and link any issue numbers. A good PR makes code review less like a haunted house tour.

Alternatively use the Bitbucket web UI

If you hate terminals or the change is tiny you can upload files directly in the Bitbucket web interface. That works for a few files but becomes a misery for many files or binary assets. Use the web UI for small edits and the command line for anything substantial.

Tips and common gotchas

  • If your push is rejected check branch protection rules or required checks in Bitbucket
  • Run a quick build or tests locally before requesting review to avoid wasting reviewers time
  • Keep commit messages focused and break big changes into logical commits

Recap

Clone the repo create the folder add files stage commit and push then open a pull request for review. Or use the web UI for tiny uploads. Follow the branch rules your team prefers and add a clear PR description so reviewers do not need a Ouija board to understand the change.

Now go add that project and try not to break anything important. If you do at least leave a good commit message.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.