Alternative to codeshare.io

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
Track edits
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.
frugalmuleAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
github kind of matches your description...
0
Steve BinkCommented:
I thought the same as gheist when I read your question.  Github does all that and more.  Is there any reason you were avoiding it?
0
frugalmuleAuthor Commented:
Github does not appear to allow editing directly from the web page.  Please do advise because Github comes up alot.  I don't see how to edit code in Github?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Steve BinkCommented:
When viewing a specific file in your repo, look at the header bar for the code box.  On the far right, you'll see three icons.  The furthest right is "Delete this file".  The one next to it is "Edit this file".

Ideally, though, you should be cloning your repo to your local development environment, testing changes, then committing and pushing them back to the Github repo using Git.
0
gheistCommented:
With subversion or git client - checkout/clone and edit with common desktop tools.
0
frugalmuleAuthor Commented:
Can I "create a new file" on the website without going through all of the external tools?  That's a big barrier to entry if you can't get started by simply going to the site and creating a new file, then sharing the link to that file without having to go through additional tools.
0
Steve BinkCommented:
First, yes you can create a new file on the site.  Perhaps you should actually try Github before deciding it doesn't work for you.  It does not sound like you are at all familiar with what it offers.

Second, the "barrier to entry" you describe is not so much.  Github is designed to be a git repo warehouse.  Most of your work should be going through your actual development environment, where it is tested, edited, QA'd, etc., then pushed back to your repo for public/group access.  While the Github website *can* function as a basic editor and collaboration platform, the real power comes from using the tools it is helping you to implement..  namely, git.  If you feel installing and learning git is too much for you or your team, you might be in the wrong business.
0
frugalmuleAuthor Commented:
I appreciate your humor.

The folks I am trying to work with are in other parts of the world, so having an editor that works directly from the webpage is somewhat important.
0
frugalmuleAuthor Commented:
OK, I have installed Git as well as some kind of connector piece that came with it allowing me to connect to github.  That said, still haven't figured out how to get my code from here http://www.codeshare.io/VLR1a to github or whatever.  Here is an audiocast of my attempt http://screencast.com/t/cPnVuSQrmH.
0
Steve BinkCommented:
I've attached a real quick demo of how this works...see the SWF below.

With Github, your repo generally lives on the Github server.  You can access it through their site, through the Github for Windows client, or the git command line utilities.  When you are working with a repo, you clone (copy) the repo to your local development environment to make changes.  The cloning process creates a local directory on your computer that is an exact mirror of the repo as it exists on Github.  You can change or delete files, as well as create them.  One important point - this is done *locally*.  

When you feel you're ready, you commit your local changes.  This adds all the current changes to the official local git history for that repo.  Once you feel your commits are ready to be published to the master, you push your changes back to Github.

The repo on Github is all anyone ever sees, and you can control access to it from Github's control panel.  If you have a premium account, you can even make a private repo....the free accounts can only make public repos.  All that means is people can *see* it, and even clone it or generate pull requests to it.  As the author, though, you are still in charge of any changes to be accepted.

github-tutorial.swf
0
frugalmuleAuthor Commented:
OK, that's interesting.

So if someone wanted to see the colorized code online without having do anything but click the link, can they do that?
0
Steve BinkCommented:
You can send them the link to the file in your Github repo.  From there, they can propose changes to the file, or clone the repo and work locally.  Any changes they want to submit back to your master must go through a "pull request", which is a request for you to merge their changes into your copy.
0
Steve BinkCommented:
It is important to remember that Github, and the Github for Windows client, are only interfaces on top of the core platform - git.  If you decide to go with git, there is a lot more you can do with it than what these clients offer.  As a git administrator, you'll probably want to know some of these things.  :)

http://git-scm.com/book/en/v2
http://git-scm.com/docs
0
frugalmuleAuthor Commented:
Steve, can you post a sample link of a git repository code block that I can view with colorization, without having anything else installed?
0
Steve BinkCommented:
Just take a look through my repos on github...or any repos, for that matter.  In mine, you'll find samples of PHP, Javascript, CSS, a little bash, and maybe some MySQL buried in there somewhere.
0
frugalmuleAuthor Commented:
Ok, here is one https://github.com/routinet/MaxDelivery/blob/master/ajax_db.sql and it does appear to be shown with colorization.

That's interesting.  I never knew github could show that.  Can the author set the colorization and background so that others see it the way the author intended?
0
Steve BinkCommented:
I don't think so.  At least, I've never seen any feature like that.  See: https://help.github.com/articles/github-flavored-markdown/
0
frugalmuleAuthor Commented:
Interesting.

Why can't I get this one to appear with colors for vbscript https://github.com/tedpenner/tp/blob/master/.gitignore
0
Steve BinkCommented:
If you want it colored as a .vbs file, why are you naming it .gitignore?

https://help.github.com/articles/ignoring-files/
0
frugalmuleAuthor Commented:
Because it was the only way that I could see to create a new file in a repository from within the browser.  I'm totally lost with github and privacy is needed so I am still looking for a free alternative.
0
Steve BinkCommented:
The free Github account does nothing for privacy - it's all about making development public.  You *can* control who edits your repo, but it is always plainly visible.  Of course, there are the paid accounts, but you're looking for free.

Have you tried bitbucket.org?  They are based on git and mercurial, and allow unlimited private repos for groups of 5 users or less.  I've not tried them myself, so cannot recommend either way.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
frugalmuleAuthor Commented:
Bitbucket has the sharing and colorization.  Naming is a bit clunky and web interface is a bit lacking.


This one is another one that is pretty slick https://kobra.io/#/e/-Jow_MI4lfug5ir0VoAu .  Privatizing requires a subscription though which is not great.  Web interface is great except that audio chat doesn't exist without the video.
0
frugalmuleAuthor Commented:
If https://kobra.io were free, it would be perfect!

I think that is the one we are going to settle on.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.