Standard practice to publish and source-control a single file? [closed]

I often want to publish some useful standalone script – e.g., a matlab script which converts flac files into wav files. If it were a big project I would immediately place it in Github, however it seems weird to make a repository for a single file. I could group this script with other scripts of the same subject (e.g., “audio” scripts), however that would make for a repository for miscellanea. I want other developers to use these files and also improve them. Should I simply go with the repository-of-one-file option or is there a more standard practice?

2

I think Github Gists would be a perfect fit for this scenario.

Gist is a simple way to share snippets and pastes with others. All gists are Git repositories, so they are automatically versioned, forkable and usable from Git.

It even has an API to get,post, edit your files/snippets.

You’re having trouble with this question because you’re not thinking about the right things. Source control is a tool, it’s not a means to an end. What are your plans down the road?

Do you want to have a toolkit of many scripts where people can use any or all of your package for, say, audio processing? Then group them together in the AudioMiscellanea repository.

Do you want to have this project be standalone, where it could potentially be refactored into multiple files and have features and other complexity be added to it? Then give it it’s own repository.

In short: Think about your goals, and which paradigm best suits those goals, rather than “what’s the best practice”.

1

Git repos are incredibly easy to set up. Move your file into a directory of its own, run git init, and start enjoying version control. There’s no downside to doing this, except that you end up with a lot of repos. If you want to share that repo on GitHub or Bitbucket, just do so – after all, public repos are free.

The idea to have one big repo that contains many smaller projects is unfortunately quite common. When working with SVN, that was actually the most sane option – but with Git, this has no place: please keep separate things separate. Especially, using different repos for different projects keeps the history fairly clean, and makes it easy for other people to use the script they want without having to deal with the other cruft that crept into your catch-all repository.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Standard practice to publish and source-control a single file? [closed]

I often want to publish some useful standalone script – e.g., a matlab script which converts flac files into wav files. If it were a big project I would immediately place it in Github, however it seems weird to make a repository for a single file. I could group this script with other scripts of the same subject (e.g., “audio” scripts), however that would make for a repository for miscellanea. I want other developers to use these files and also improve them. Should I simply go with the repository-of-one-file option or is there a more standard practice?

2

I think Github Gists would be a perfect fit for this scenario.

Gist is a simple way to share snippets and pastes with others. All gists are Git repositories, so they are automatically versioned, forkable and usable from Git.

It even has an API to get,post, edit your files/snippets.

You’re having trouble with this question because you’re not thinking about the right things. Source control is a tool, it’s not a means to an end. What are your plans down the road?

Do you want to have a toolkit of many scripts where people can use any or all of your package for, say, audio processing? Then group them together in the AudioMiscellanea repository.

Do you want to have this project be standalone, where it could potentially be refactored into multiple files and have features and other complexity be added to it? Then give it it’s own repository.

In short: Think about your goals, and which paradigm best suits those goals, rather than “what’s the best practice”.

1

Git repos are incredibly easy to set up. Move your file into a directory of its own, run git init, and start enjoying version control. There’s no downside to doing this, except that you end up with a lot of repos. If you want to share that repo on GitHub or Bitbucket, just do so – after all, public repos are free.

The idea to have one big repo that contains many smaller projects is unfortunately quite common. When working with SVN, that was actually the most sane option – but with Git, this has no place: please keep separate things separate. Especially, using different repos for different projects keeps the history fairly clean, and makes it easy for other people to use the script they want without having to deal with the other cruft that crept into your catch-all repository.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật