Git Bitbucket Pages
Enable Bitbucket Pages
Bitbucket Cloud lets you publish a website directly from your repository. To enable it:
- Create a new repository named
your-username.bitbucket.io
. - Add your website files (like
index.html
) to the repository. - Push your changes to Bitbucket.
Example
git remote add origin https://bitbucket.org/your-username/your-username.bitbucket.io.git
git push -u origin master
Set Source Branch/Folder
Bitbucket uses the master
branch and the root folder by default for Bitbucket Pages. Make sure your site files are in the root of the repository and pushed to master
.
View Your Site
After enabling Bitbucket Pages, your site will be available at https://your-username.bitbucket.io/
(or your custom domain).
Click the link to see your live site!
Disable Bitbucket Pages
To turn off your Bitbucket Pages site:
- Go to your repository's Settings > Pages.
- Click Disable or delete the repository if you no longer need it.