Getting started with an existing local project folder Edited

I tried to follow the suggested steps to setup my exisiting local project directory but it failed.  Why? Becuase of terminology.  The link said "I have an exisiting project".  When I clicked on it I got "Step 1: Switch to your repository's directory".  I have a project on my computer not a repository.

So what to do?  I started from scratch.  I followed all the steps including the very uninituitive one of cloning an empty repository.

I then copied my exisiting files from another directory into the empty cloned directory.  Did a git add * and followed the rest of the steps.

Voila! I added an exisiting project folder to a git repository by starting from scratch.

OY! There has to be a beter way that skips the copying from one directory to another and just uses the exisiting local folder.  Any suggestions?  Thanks.

1 answer

0 vote

Yes, you can do it. When you create a new repository in Bitbucket, it gives you options to start from scratch, start from an existing project folder that is not a git repository and start from an existing git repository. You can just follow the instructions.

I suspect you are after the second option. In that case, you need to initiate a git repository in the existing folder, set the remote url and do a push. That's it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,211 views 26 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you