BitBucket Code Repository for Raspberry Pi

BitBucket and GitHub are both excellent cloud based tools that provide online code backup and version control.

Once you start developing some code on your Raspberry Pi (or any other linux platform) you’ll need a reliable and easy method to archive your work.

Since the Raspberry Pi has built in Ethernet, and optional Wi-Fi connectivity, cloud based solutions are easy to implement.  They provide a secure and reliable off-site location to protect your data that is accessible almost anywhere.

Both BitBucket and GitHub provide basic service FREE for a single user.





Both applications support the Git methods and command line operations.  So from a development point of view, they are transparent after the initial setup.  Once the system is configured to connect with the repository using the proper credentials the commands to generate commits, comments and pushes are identical.

So which one to choose?  Well that depends.  Encouraging the mantra of free and open source, GitHub does not offer any private repositories for their free plan.  That’s great and for most people it is likely the best choice.  However, certain factors might sway you to consider using BitBucket as the number of private repositories for the first 5 users is unlimited.  For some projects, the server may be connecting to certain online cloud services and risk expose the login credentials or other private information embedded in the code.

Configuring ArchLinux for BitBucket


Create a BitBucket account


Start with the documentation here:

install git


Set up the ssh key:


Set up your local machine per the instructions from BitBucket:

git setup


Great now that should give you some peace of mind.  If anything happens to your SD card it will be simple to reconstruct your development environment.  This is also a great way to distribute your code to other platforms, or if you wish you can make your repository public or send links to someone you want to share the code with.


If you receive an Invalid SSH Key message you can use ssh-keygen to validate the key.  Copy the SSH key and paste it into a new file called then run:

ssh-keygen -l -f

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *