Take the 2-minute tour ×
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
add comment

1 Answer 1

up vote 6 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:

https://github.com/user/repository/raw/branch/filename

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. –  c0dev Oct 16 '13 at 19:18
add comment

Your Answer

 
discard

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.