Can Heroku work as version control?

I am working with this school project (webapp in RoR) in group of 10 and we get into this fight.

One says we should use Heroku as our web host because it does version control with git.
The other says it’s cool to use Heroku as web host, but it doesn’t not store old code and keep track of changes, so we should set up our own github/assembla-git.

  • Cannot clone from Assembla
  • connecting visual studio 2010 to assembla SVN
  • XCode 4 (Assembla) SVN Repository “Unable to load revisions”
  • GIT with assembla repository type personal or public?
  • Git (assembla) - Syntax to refer to a previous changeset in a commit message
  • Invalid channel 117 - Eclipse / EGit
  • Who is right?

  • Pull, rebase, push, in one command (or just a few)
  • Make Git consume less disk space?
  • How do I change the git branch from which I branched?
  • Why should I use core.autocrlf=true in Git?
  • Removing non-repository files with git?
  • What is the value-add of Repo (+git)?
  • 2 Solutions collect form web for “Can Heroku work as version control?”

    Heroku uses git for deploy. So you can use it as version control too.

    But I would not recommend it. When you push to heroku it’s mean deploy to production. But your code can be not ready for it. Not tested yet, feature not fully implemented and etc.

    You can add 2 remote for your repository.

    git push origin master # github
    git push heroku master 

    So I would recommend you use heroku as webhost and github as version control

    There is nothing wrong with using Heroku as your main Git repository. I have dozens of projects that are set up this way.

    Heroku is definitely not going to arbitrarily delete code or commits in your repository.

    Of course, anything you push to the master branch will actually be deployed, but you are free to push other branches if you want (Heroku will simply ignore those).

    The advantage of using GitHub in addition to Heroku is that you get a bunch of extra functionality on top of just the bare Git repository, such as a web-based UI and collaboration tools like pull requests, etc. Keep in mind that GitHub for private repositories is a paid service, however. There are also competitors to GitHub such as Bitbucket which offers private repositories for free for small teams.

    But if you are already familiar with Git and don’t feel like you need any extra functionality on top of it, you might as well just go with Heroku. There’s something to be said for simplicity, as well.

    Git Baby is a git and github fan, let's start git clone.