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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.