Hello there @matthewcroughan,
You should be able to clone the balena repository by carrying out the following:
git clone <user>@git.balena-cloud.com:<user>/<app>.git
Where <user>
is your balena username and <app>
is the name of the application you want the source for. As long as the SSH keys registered with your balena account are in your ssh-agent
keychain, then this should work without issue.
However, I want to stress very strongly that we make absolutely no guarantee that any code pushed to our private git repositories will be present if required. They are used purely as a store for our Builders to access to build application images, and as such are considered volatile. As per this page: https://www.balena.io/docs/learn/deploy/deployment/#git-push we make the following warning:
“Warning: The balenaCloud git repository is not intended as a code hosting solution, and we cannot guarantee the persistence of data in balenaCloud git remotes. We recommend you use a service like Github to manage and share your code.”
I’d also like to use this opportunity to note that git push
is now considered a legacy form of pushing to our builders, and we will not be improving or recommending this method. The correct way to push code to our Builders is now balena push
.
Thanks and best regards,
Heds