I need a free code sharing alternative that meets a few more criteria. While codeshare.io does provide syntax coloring for an amazing array of programming languages, sharing of code snipits without requiring sign-in, it does miss on some key points.
Restrict editing in some cases, but still allow non-users to view
Provide ability to git from linux servers
Provide ability to fork code.
Provide ability to save certain reusable comments such as those at the beginning and end of the code.
Assistance in finding a single free alternative that meets all those points is greatly appreciated.