The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events