Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Just like the question says... I am looking for a free version control system that allows me to share individual scripts out of a larger project.

So, can GitHub or BitBucket do something like this? Is it possible to have a public repository with many scripts, and send someone a link for downloading an individual script?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

In GitHub, if you view a file, there is a link to the raw-version of the file.

It should look like this:

When you replace the blankets, with the real filename etc, than you can download it with curl or wget. So you could send this link to share this file. But it won't have version-control features from git etc.

share|improve this answer
Oh man, that is just perfect, I want to give you extra points. – jake9115 Oct 16 '13 at 18:44
You are welcome. Nice that it works. – Christian Woerz Oct 16 '13 at 19:18
Now, is there a way to request an earlier version of the file? – Mikhail T. Mar 10 at 4:20
You can use the commit ID to get an earlier version{commitID}/filename – Sthe Oct 12 at 23:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.