Menu
×
   ❮     
     ❯   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE

Git Bitbucket Pages


Host Your Page on Bitbucket Cloud

With Bitbucket Cloud, Bitbucket allows you to host a webpage from your repository. Let's try to use Bitbucket Cloud to host our repository.


Create a New Repository

Start by signing in to Bitbucket. Bitbucket Cloud needs a special name and setup to work, so we start by creating a new repository:

Bitbucket Create New Repository

This repository needs a special name to function as a GitHub page. It needs to be your Bitbucket username/workspace ID, followed by .bitbucket.io:

Bitbucket Pages Naming Rules


Push Local Repository to Bitbucket Cloud

We add this new repository as a remote for our local repository, we are calling it bb-cloud (for Bitbucket Cloud).

Copy the URL from here:

Bitbucket Copy Repository URL

And add it as a new remote:

Example

git remote add bb-cloud https://w3schools-test@bitbucket.org/w3schools-test/w3schools-test.bitbucket.io.git

Make sure you are on the master branch, then push the master branch to the new remote:

Example

git push bb-cloud master
Enumerating objects: 31, done.
Counting objects: 100% (31/31), done.
Delta compression using up to 16 threads
Compressing objects: 100% (31/31), done.
Writing objects: 100% (31/31), 93.80 KiB | 15.63 MiB/s, done.
Total 31 (delta 17), reused 0 (delta 0), pack-reused 0
To https://bitbucket.org/w3schools-test/w3schools-test.bitbucket.io.git
 * [new branch]      master -> master

Note: If this is the first time you are connecting to Bitbucket, you will get some kind of notification to authenticate this connection.

Check that the new repository has received all the files:

Check Bitbucket to see that everything is present

That looks good, now use the repository name as an URL in your broweser to view the result!


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.