Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to import the repos from my local laptop to remote bitbucket

JieZou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 26, 2025

Hi bitbucket expert:

    These is a repos on my local laptop but I can't access its remote repos for some issues. The remote repos has been deleted so that I decide to transfer the local one to bitbucket.

    How to operate with either git bash or bitbucket online. The local repos has .git folder with all the records.

 

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2025

Hi @JieZou

Welcome to the community.

Could you confirm if you'd like to push your existing repositories locally to Bitbucket.org?

If yes, what you can do is to create a new repository the push your local copy that new one.

Inside your local repository, you can run the commands:

git remote add cloud <cloud-repo-url>

This is to add the "cloud" remote URL which is your new repository Git URL

After that, push your changes to the new repository:

git push -u cloud --all && git push -u cloud --tags

This command will push to the "cloud" remote repository including tags

You can also check this existing KB as a reference: How to git push an existing repository/project to Bitbucket Cloud

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events