5 years, 9 months ago.

How to create/use a "remote" repository? Can I do that on a local fileserver's SAMBA share?

Greetings yet again!

Another noob question:

Since all this version control stuff seems to center around "remote" repositories, how do I get/create/use one of these "remote" repositories?

Since I'm not planning to revolutionize the Mbed world - at least not yet! - and most of this stuff is purely experimental, do I even NEED a "remote" repository? Or, is that potentially useful as a place to put my experiments and/or comments for others to see and learn from? (i.e. The ubit display documentation is less than stellar, and this is what I figured out about it.) Or, maybe I should post that in these fora for others to find and see?

Assuming that a "remote" repository is useful and/or necessary, and a cloud based repository is not a great idea right now, can I create my "remote" repository on a SAMBA share? Or, is that more like installing Subversion somewhere on a Linux box, with all the attendant overhead and grief that involves?

Assuming that a "remote" repository is useful and/or necessary, and a cloud-based repository is the way to go, where, how, and as what cost do I create this cloud-based repository?

Thanks again for all your patience.

Jim "JR"

1 Answer

5 years, 9 months ago.

Hi again Jim,

A "remote" repository is essentially one that is not stored on your computer locally. You can create a local repository on your computer using a version control service like GitHub, Mercurial, etc. You can use these services to create a repository that has "source control management" in any location, on your own server, locally on your computer, etc.

Say you have an Mbed OS program that you have published on the os.mbed.com website, for example: https://os.mbed.com/users/jplunkett/code/jenny-test/ . This program is a "remote" repository stored on the os.mbed.com website server storage and has the remote repository URL: https://os.mbed.com/users/jplunkett/code/jenny-test/

Because the os.mbed.com website uses Mercurial for our repository source control management, if I wanted to take this "remote" repository from the website and use it "locally" on my own computer, I would install the Mercurial SCM CLI (command line interface) and "clone" it to my local computer storage with the following command in my terminal program: hg clone https://os.mbed.com/users/jplunkett/code/jenny-test/ (note: if you are using the tools provided by the offline Mbed CLI the command would instead be mbed import http://os.mbed.com/users/jplunkett/code/jenny-test/ )

Another extremely common source control management service is GitHub, you can review their handbook here: https://guides.github.com/introduction/git-handbook/ . GitHub also has their own repository disk storage quotas, you can view information about this here: https://help.github.com/articles/what-is-my-disk-quota/

The os.mbed.com website now has the ability for you to showcase your GitHub hosted code on your Mbed profile, here's the blog post with information regarding this: https://os.mbed.com/blog/entry/Share-your-Github-hosted-code/

Overall, if you have Mbed OS specific code you would like to share to the world (especially other Mbed OS users), the os.mbed.com user profile pages are a great way to do that. If you have other code (or more Mbed OS code as well) that you would like to make public to the world via the internet, services like GitHub, Bitbucket, etc. are great for that as well.

Please let me know if you have any questions!

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Accepted Answer